]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Allow whitespaces when parsing the rules files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 13 Apr 2021 16:08:12 +0000 (18:08 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 3 Aug 2021 17:25:53 +0000 (19:25 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 7565908ac6fe90380f14f4b91c85d8c115249246..ec20e5a09f2b3a9e48e059c88215a0f5352ee320 100644 (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;