From 466c67794b207f327a4b7478ce6f2c9c194df45f Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 12 Dec 2017 20:15:00 +0100 Subject: [PATCH] ids.cgi: Process enabled rulefiles in an own loop Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 8931ee6e29..8a6e51b1d4 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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. -- 2.39.2