From: Stefan Schantl Date: Tue, 13 Apr 2021 16:08:12 +0000 (+0200) Subject: ids.cgi: Allow whitespaces when parsing the rules files. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7131a7bd94ef07f11d6c5971228710ad4445801b;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Allow whitespaces when parsing the rules files. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index cc3be9e941..1f8e09a6c8 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:\s*\"(.*?)\"\; .*sid:\s*(.*?); /) { $msg = $1; $sid = $2;