]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
showrequestfromblocklist.dat: Fix silly typos.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 5 Apr 2022 03:02:30 +0000 (05:02 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:26:14 +0000 (17:26 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/logs.cgi/showrequestfromblocklist.dat

index 4f8264acecf61c88c42215ca28d28d5de216318d..98524614f6fa6638a321e9ecb2edcb71c61826cf 100755 (executable)
@@ -156,13 +156,13 @@ if (!(open (FILE,($filestr =~ /.gz$/ ? "gzip -dc $filestr |" : $filestr)))) {
 }
 my $lines = 0;
 my @log=();
-my $blaoklist = $cgiparams{blocklist};
+my $blocklist = $cgiparams{blocklist};
 
 if (!$skip)
 {
        while (<FILE>) {
                if (/^${monthstr} ${daystr} ..:..:.. [\w\-]+ kernel:.*BLKLST_(\w+)\s?IN=.*/) {
-                       if($1 eq $blacklist){
+                       if($1 eq $blocklist){
                                $log[$lines] = $_;
                                $lines++;
                        }
@@ -187,7 +187,7 @@ if ($multifile) {
        if (!$skip) {
                while (<FILE>) {
                        if (/^${monthstr} ${daystr} ..:..:.. [\w\-]+ kernel:.*BLKLST_(\w+)\s?IN=.*/) {
-                               if($1 eq $blacklist){
+                               if($1 eq $blocklist){
                                        $log[$lines] = $_;
                                        $lines++;
                                }
@@ -309,7 +309,7 @@ foreach $_ (@slice) {
        $a = $_;
        # Check whether valid ipv4 or ipv6 address
        if (($_ =~ /BLKLST_(\w+)\s?IN=/)) {
-               if($1 eq $blacklist) {
+               if($1 eq $blocklist) {
                        my $in = '-'; my $out = '-';
                        my $srcaddr = ''; my $dstaddr = '';
                        my $protostr = '';