From 5709768b0bab2b860911fcad66da8e0aec5c4eaa Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 5 Feb 2019 12:36:30 +0100 Subject: [PATCH] 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 --- html/cgi-bin/ids.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 56d39fd60b..151181fdc0 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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. - unless ((%idsrules) || ($oldsettings{'RULES'} eq $cgiparams{'RULES'})) { + if((! %idsrules) || ($oldsettings{'RULES'} ne $cgiparams{'RULES'})) { # Check if the red device is active. unless (-e "${General::swroot}/red/active") { $errormessage = "$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}"; -- 2.39.5