From: Stefan Schantl Date: Tue, 12 Dec 2017 19:10:17 +0000 (+0100) Subject: ids.cgi: Drop enabled rulefile from cgiparams hash after processing X-Git-Tag: suricata-beta3~33^2~39^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b65b5ef3775cc724da41a47b5285b7057a2250fd;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Drop enabled rulefile from cgiparams hash after processing Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index accb919838..3740bd801c 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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.