]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
logs.cgi/ids.dat: Proper display logged events.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 26 Jul 2022 17:31:06 +0000 (19:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 27 Jul 2022 07:11:04 +0000 (07:11 +0000)
Fix the regular expression to proper display the logged IDS events.

Fixes #12899.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/logs.cgi/ids.dat

index 35c0dd1fd600ba26b827202b7bc430639e88287e..7991e3936b4ca88c48c7bdf076c5c07052fbf7b1 100644 (file)
@@ -414,7 +414,7 @@ sub processevent
                                }
                                ($title,$classification,$priority,$date,$time,$srcip,$srcport,$destip,$destport,$sid) = ("n/a","n/a","n/a","n/a","n/a","n/a","n/a","n/a","n/a", "n/a");
                                @refs = ();
-                               $_ =~ m/:([0-9]{1,5})\] (.*) \[\*\*\]/;
+                               $_ =~ m/:([0-9]{1,10})\] (.*) \[\*\*\]/;
                                $title = &Header::cleanhtml($2,"y");
                        }
                        if ($_ =~ m/Classification: (.*)\] \[Priority: (\d)\]/) {