logs.cgi/ids.dat: Proper display logged events.

Message ID 20220726173106.2905-1-stefan.schantl@ipfire.org
State Accepted
Commit d0ee27149d53fff6c9701c554a690e422240e9e0
Headers
Series logs.cgi/ids.dat: Proper display logged events. |

Commit Message

Stefan Schantl July 26, 2022, 5:31 p.m. UTC
  Fix the regular expression to proper display the logged IDS events.

Fixes #12899.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/logs.cgi/ids.dat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat
index 35c0dd1fd..7991e3936 100644
--- a/html/cgi-bin/logs.cgi/ids.dat
+++ b/html/cgi-bin/logs.cgi/ids.dat
@@ -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)\]/) {