]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Lock the CGI when a provder will be deleted.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 1 Apr 2021 10:02:45 +0000 (12:02 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 3 Aug 2021 17:25:48 +0000 (19:25 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 6a7a2e18acfdedf49b03d6acc547b62be332ec23..b1107fdc41b60d265f7d253b41d050ab710d7dcf 100644 (file)
@@ -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, '');