mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
logs.cgi/ids.dat: Dont display/export empty events.
Check if the current processed event has at least datetime and a title. Otherwise skip it. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -167,6 +167,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
|
||||
{
|
||||
my ($datetime,$title,$priority,$classification,$srcip,$srcport,$destip,$destport,$sid,$refs) = split(/\|/);
|
||||
$refs =~ s/,$//;
|
||||
|
||||
# Skip event if no datetime and title are available.
|
||||
next unless (($datetime) && ($title));
|
||||
|
||||
print "Date: $datetime\n";
|
||||
print "Name: $title\n";
|
||||
print "Priority: $priority\n";
|
||||
@@ -285,6 +289,10 @@ foreach $_ (@slice)
|
||||
else {
|
||||
print "<tr bgcolor='$color{'color22'}'><td>\n"; }
|
||||
my ($datetime,$title,$priority,$classification,$srcip,$srcport,$destip,$destport,$sid,$refs) = split(/\|/);
|
||||
|
||||
# Only show the current event if at least datetime and title are available.
|
||||
next unless (($datetime) && ($title));
|
||||
|
||||
print <<END
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user