]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/ids.cgi
ids.cgi: Set state of used rulefile to on if it contains rules
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 11 Sep 2018 10:00:31 +0000 (12:00 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 11 Sep 2018 10:00:31 +0000 (12:00 +0200)
commit43ab7d9c30fb24bebd716e264530d7db3e84a007
treeacc1527bc2e7f45c53bed13e2917867db57c0cad
parentb7e29743944953c973e3f858c10ab627949f898d
ids.cgi: Set state of used rulefile to on if it contains rules

Only set the state of a used rulefile to "on" if it is present in
the %idsrules hash. This happens if it contains at least one rule.

This prevents from showing a rulefile in the ruleset section if, it
does not exist anymore or does not contains any rules at all.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi