mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 07:23:03 +02:00
ids.cgi: Process enabled rulefiles in an own loop
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user