]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - download.c
Fix the reporting of downloaded files
[thirdparty/sarg.git] / download.c
index 1bf745d17d8696eb79b305d9d9d1c2e13e92a427..e8f11bf52636966272fe4cc5558eae377f340a95 100644 (file)
@@ -87,7 +87,7 @@ void download_write(const struct ReadLogStruct *log_entry,const char *url)
 {
        char date[80];
 
-       if (fp_download && strstr(log_entry->HttpCode,"DENIED") != 0) {
+       if (fp_download && strstr(log_entry->HttpCode,"DENIED") == 0) {
                strftime(date,sizeof(date),"%d/%m/%Y\t%H:%M:%S",&log_entry->EntryTime);
                fprintf(fp_download,"%s\t%s\t%s\t%s\n",date,log_entry->User,log_entry->Ip,url);
                download_exists=true;