mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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 <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
738ee72027
commit
df7977fde7
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user