mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
ids.cgi: Allow whitespaces when parsing the rules files.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user