From: Stefan Schantl Date: Tue, 5 Apr 2022 03:02:30 +0000 (+0200) Subject: showrequestfromblocklist.dat: Fix silly typos. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6223e2b49853169a41d3df7c674878dd4e8ec912;p=people%2Fpmueller%2Fipfire-2.x.git showrequestfromblocklist.dat: Fix silly typos. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat b/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat index 4f8264acec..98524614f6 100755 --- a/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat +++ b/html/cgi-bin/logs.cgi/showrequestfromblocklist.dat @@ -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 () { 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 () { 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 = '';