mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ids.cgi: Fix downloading rules if source changed
Fix the if statement to detect wheater the ruleset has been changed and automatically download the new one. Fixes #11984. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -324,7 +324,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check if a ruleset is present - if not or the source has been changed download it.
|
# Check if a ruleset is present - if not or the source has been changed download it.
|
||||||
unless ((%idsrules) || ($oldsettings{'RULES'} eq $cgiparams{'RULES'})) {
|
if((! %idsrules) || ($oldsettings{'RULES'} ne $cgiparams{'RULES'})) {
|
||||||
# Check if the red device is active.
|
# Check if the red device is active.
|
||||||
unless (-e "${General::swroot}/red/active") {
|
unless (-e "${General::swroot}/red/active") {
|
||||||
$errormessage = "$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}";
|
$errormessage = "$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}";
|
||||||
|
|||||||
Reference in New Issue
Block a user