ids.cgi: Process enabled rulefiles in an own loop

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2017-12-12 20:15:00 +01:00
parent 603334734a
commit 466c67794b

View 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.