From 4946b0a7a7edfdf3f4e91b9c2d154ab41c62aca4 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 5 Apr 2021 07:52:30 +0200 Subject: [PATCH] ids.cgi: Do not expect a space before the sid when parsing rulefiles. 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 c327179a4b..7565908ac6 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; -- 2.39.5