]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Make backend code for forced ruleset update working again.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 2 Apr 2021 09:00:17 +0000 (11:00 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 8 Sep 2021 17:37:25 +0000 (19:37 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index e68c2558c5f6dd2b9e058693149d4a3298333a50..b8c02341fb77ed9777194c0636ff6ee96173d62e 100644 (file)
@@ -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.