From: Stefan Schantl Date: Mon, 5 Apr 2021 05:52:30 +0000 (+0200) Subject: ids.cgi: Do not expect a space before the sid when parsing rulefiles. X-Git-Tag: v2.27-core164~210^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded4348d0d1b91ddcc8acdc3bb67aa2dbacc6140;p=ipfire-2.x.git ids.cgi: Do not expect a space before the sid when parsing rulefiles. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 0f039c33c3..cc3be9e941 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1942,7 +1942,7 @@ sub readrulesfile ($) { my $msg; # Gather rule sid and message from the ruleline. - if ($line =~ m/.*msg:\"(.*?)\"\; .* sid:(.*?); /) { + if ($line =~ m/.*msg:\"(.*?)\"\; .*sid:(.*?); /) { $msg = $1; $sid = $2;