]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/blobdiff - html/cgi-bin/ids.cgi
ids.cgi: Allow whitespaces when parsing the rules files.
[people/stevee/ipfire-2.x.git] / 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;