From eaf5364413ab44dff0640396653fef4e39ace4d7 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 17 Apr 2022 15:21:20 +0200 Subject: [PATCH] ids.cgi: Disable manual update button if a provider is not longer supported. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 2a837bfc1e..3ee66e06b1 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1780,7 +1780,8 @@ END ## Function to show the area where additional provider actions can be done. # sub show_additional_provider_actions() { - my $disabled; + my $disabled_reset; + my $disabled_update; my %used_providers = (); # Read-in providers settings file. @@ -1795,7 +1796,12 @@ sub show_additional_provider_actions() { # Disable the reset provider button if no provider modified sids file exists. unless (-f $modifications_file) { - $disabled = "disabled"; + $disabled_reset = "disabled"; + } + + # Disable the manual update button if the provider is not longer supported. + unless ($IDS::Ruleset::Providers{$provider}) { + $disabled_update = "disabled"; } &Header::openbox('100%', 'center', ""); @@ -1805,8 +1811,8 @@ sub show_additional_provider_actions() { - - + + -- 2.39.2