From b65b5ef3775cc724da41a47b5285b7057a2250fd Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 12 Dec 2017 20:10:17 +0100 Subject: [PATCH] ids.cgi: Drop enabled rulefile from cgiparams hash after processing 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 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. -- 2.39.5