]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Drop enabled rulefile from cgiparams hash after processing
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Dec 2017 19:10:17 +0000 (20:10 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:44:12 +0000 (11:44 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index accb9198384892f0bb0dee86b5a8be920aaef669..3740bd801c5da4022f0c1d43d668cc159477183a 100644 (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.