From 4875b651e3c4dd35708d795a86617fc0122f28e1 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 1 Apr 2021 12:02:45 +0200 Subject: [PATCH] ids.cgi: Lock the CGI when a provder will be deleted. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 6a7a2e18ac..b1107fdc41 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, ''); -- 2.39.5