ids.cgi: Do not expect a space before the sid when parsing rulefiles.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-04-05 07:52:30 +02:00
parent 58d368d11c
commit ded4348d0d

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:\"(.*?)\"\; .*sid:(.*?); /) {
$msg = $1;
$sid = $2;