From 4d438241c3521582239738198a9070cebdc91c04 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 12 May 2021 19:44:43 +0200 Subject: [PATCH] ids.cgi: Do not expect a space after the msg tag has been closed while processing rules. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index ed847b9167..15a340b423 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1974,7 +1974,7 @@ sub readrulesfile ($) { my $msg; # Gather rule sid and message from the ruleline. - if ($line =~ m/.*msg:\s*\"(.*?)\"\; .*sid:\s*(.*?); /) { + if ($line =~ m/.*msg:\s*\"(.*?)\"\;.*sid:\s*(.*?); /) { $msg = $1; $sid = $2; -- 2.39.2