ids.cgi: Allow whitespaces when parsing the rules files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-04-13 18:08:12 +02:00
parent 302420ad4a
commit 7131a7bd94

View File

@@ -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;