ids.cgi: Drop enabled rulefile from cgiparams hash after processing

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2017-12-12 20:10:17 +01:00
parent e573807983
commit b65b5ef377

View File

@@ -143,6 +143,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
if ($cgiparams{$rulefile} eq "on") {
# Add rulefile to the array of enabled rulefiles.
push(@enabled_rulefiles, $rulefile);
# Drop item from cgiparams hash.
delete $cgiparams{$rulefile};
}
# Loop through the single rules of the rulefile.