From: Stefan Schantl Date: Fri, 2 Apr 2021 09:00:17 +0000 (+0200) Subject: ids.cgi: Make backend code for forced ruleset update working again. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e924ad8106e300b1c9799f59913a390f925d2c9;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Make backend code for forced ruleset update working again. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index e68c2558c5..b8c02341fb 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -496,7 +496,10 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { &reload(); # Download new ruleset. -} elsif ($cgiparams{'RULESET'} eq $Lang::tr{'update ruleset'}) { +} elsif ($cgiparams{'PROVIDERS'} eq $Lang::tr{'ids force ruleset update'}) { + # Assign given provider handle. + my $provider = $cgiparams{'PROVIDER'}; + # 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'}"; @@ -514,7 +517,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { &working_notice("$Lang::tr{'ids download new ruleset'}"); # Call subfunction to download the ruleset. - if(&IDS::downloadruleset()) { + if(&IDS::downloadruleset($provider)) { $errormessage = $Lang::tr{'could not download latest updates'}; # Call function to store the errormessage.