]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ids.cgi: Allways use the whitelist
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 14:19:30 +0000 (15:19 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 14:19:30 +0000 (15:19 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 3e4822cd41f327afe10d76a3aec168777d049ec6..fb0aeebd7ac032966abbab5663e87795687b1971 100644 (file)
@@ -419,11 +419,11 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
        # Write header to file.
        print FILE "#Autogenerated file. Any custom changes will be overwritten!\n";
 
+       # Allways load the whitelist.
+       print FILE " - whitelist.rules\n";
+
        # Check if the enabled_rulefiles array contains any entries.
        if (@enabled_rulefiles) {
-               # Allways load the whitelist.
-               print FILE " - whitelist.rules\n";
-
                # Loop through the array of rulefiles which should be loaded and write them to the file.
                foreach my $file (@enabled_rulefiles) {
                        print FILE " - $file\n";