From d51d3c5b93886a66b75388d029e35eb07d9b06eb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 12 Apr 2019 17:36:54 +0100 Subject: [PATCH] IPS logging: Fix date comparison for last entry Signed-off-by: Michael Tremer --- html/cgi-bin/logs.cgi/ids.dat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } -- 2.39.2