From: Michael Tremer Date: Fri, 12 Apr 2019 16:36:54 +0000 (+0100) Subject: IPS logging: Fix date comparison for last entry X-Git-Tag: v2.23-core131~34 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=d51d3c5b93886a66b75388d029e35eb07d9b06eb;ds=sidebyside IPS logging: Fix date comparison for last entry Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat index b2bd9f1e4b..8918bc6da6 100644 --- a/html/cgi-bin/logs.cgi/ids.dat +++ b/html/cgi-bin/logs.cgi/ids.dat @@ -446,12 +446,9 @@ sub processevent } $line++; - # Split the date into single chunks. - my ($month, $day, $year) = split('/', $date); - # Check if all data is collected and the date of the event fits the desired date to # get displayed. - if ($line gt 1 || "$month/$day" eq "$monthstr/$daystr") { &append; } + if ($line gt 1 && $date eq "$monthstr/$daystr") { &append; } close(LOG); }