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

index 3740bd801c5da4022f0c1d43d668cc159477183a..8931ee6e298cd3b04e1c905ba01d6d179b128456 100644 (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};
                                }
                        }
                }