]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix the date range exclusion while reading the dansguardian log
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Sep 2011 14:18:58 +0000 (14:18 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Sep 2011 14:18:58 +0000 (14:18 +0000)
The exclusion of the entries in the dansguardian log based on the
selected date range was not working.

Thanks to Iain Lopata for fixing this bug.

dansguardian_log.c

index d1858a01c1896621fdabc2e607e75c616c4a36fa..b40b1367620858d822775450b14f0e885a10eb90 100644 (file)
@@ -113,7 +113,7 @@ void dansguardian_log(void)
                idata = atoi(wdata);
 
                if(DansguardianFilterOutDate) {
-                       if(idata < dfrom && idata > duntil)
+                       if(idata < dfrom || idata > duntil)
                                continue;
                }