]> git.ipfire.org Git - people/pmueller/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>
Sun, 19 Dec 2021 12:23:42 +0000 (13:23 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index afc01e26cbee2f47074d022029102e932e8ce79c..2ebc78f78e026595567d6b0fe08530b8c9926174 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, '');