]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Process enabled rulefiles in an own loop
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Dec 2017 19:15:00 +0000 (20:15 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:44:48 +0000 (11:44 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 8931ee6e298cd3b04e1c905ba01d6d179b128456..8a6e51b1d4e20ca7707c677745de1072082890a0 100644 (file)
@@ -147,7 +147,10 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
                        # Drop item from cgiparams hash.
                        delete $cgiparams{$rulefile};
                }
+       }
 
+       # Loop through the hash of snortrules.
+       foreach my $rulefile (keys %snortrules) {
                # Loop through the single rules of the rulefile.
                foreach my $sid (keys %{$snortrules{$rulefile}}) {
                        # Check if there exists a key in the cgiparams hash for this sid.