ids.cgi: Drop enabled/disabled rules from cgiparams hash

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

View File

@@ -160,7 +160,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
push(@enabled_sids, $sid);
# Drop item from cgiparams hash.
delete $cgiparams{$sid};
delete $cgiparams{$rulefile}{$sid};
}
}
} else {
@@ -173,7 +173,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
push(@disabled_sids, $sid);
# Drop item from cgiparams hash.
delete $cgiparams{$sid};
delete $cgiparams{$rulefile}{$sid};
}
}
}