From: Stefan Schantl Date: Thu, 21 Mar 2024 20:51:15 +0000 (+0100) Subject: ids.cgi: Change check if a provider is not longer supported X-Git-Tag: v2.29-core185~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df7977fde7dec9516036afd8b687acab9f034bf4;p=ipfire-2.x.git ids.cgi: Change check if a provider is not longer supported This check is now based on a download URL instead of checking if an entry in the ruleset sources is present. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 369bf02760..e29482fa86 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1171,11 +1171,7 @@ END } # Handle providers which are not longer supported. - unless ($provider_name) { - # Set the provider name to the provider handle - # to display something helpful. - $provider_name = $provider; - + unless ($IDS::Ruleset::Providers{$provider}{'dl_url'}) { # Assign background color $col="bgcolor='#FF4D4D'"; } @@ -1809,7 +1805,7 @@ sub show_additional_provider_actions() { } # Disable the manual update button if the provider is not longer supported. - unless ($IDS::Ruleset::Providers{$provider}) { + unless ($IDS::Ruleset::Providers{$provider}{"dl_url"}) { $disabled_update = "disabled"; }