]> git.ipfire.org Git - people/pmueller/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>
Sun, 19 Dec 2021 12:23:44 +0000 (13:23 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index cc3be9e941e9d432fa6f87510a4d6e51470d6424..1f8e09a6c839eb6d2b365f5dee63de40472212a2 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;