]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
ids.cgi: Do not expect a space before the sid when parsing rulefiles.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 5 Apr 2021 05:52:30 +0000 (07:52 +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 0f039c33c3da39e7fddbaf8bef45414926d18fe3..cc3be9e941e9d432fa6f87510a4d6e51470d6424 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:\"(.*?)\"\; .*sid:(.*?); /) {
                        $msg = $1;
                        $sid = $2;