From: Stefan Schantl Date: Thu, 1 Apr 2021 10:02:45 +0000 (+0200) Subject: ids.cgi: Lock the CGI when a provder will be deleted. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=106f00bdbb26b9f84300c79f5b7f28dfb2395fcf;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Lock the CGI when a provder will be deleted. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index afc01e26cb..2ebc78f78e 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -842,6 +842,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { # Write the changed hash to the provide settings file. &General::writehasharray($IDS::providers_settings_file, \%used_providers); + # Lock the webpage and print message. + &working_notice("$Lang::tr{'ids apply ruleset changes'}"); + # Drop the stored ruleset file. &IDS::drop_dl_rulesfile($provider); @@ -879,6 +882,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { # Undefine providers flag. undef($cgiparams{'PROVIDERS'}); + + # Reload page. + &reload(); } &Header::openpage($Lang::tr{'intrusion detection system'}, 1, '');