From: eldy <> Date: Mon, 4 Feb 2002 19:39:10 +0000 (+0000) Subject: no message X-Git-Tag: AWSTATS_4_0_BETA~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c3bc0598d80eda28db20aee6290b2420bdac76;p=thirdparty%2FAWStats.git no message --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index fb432568..8a439862 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -126,7 +126,7 @@ $color_h, $color_k, $color_p, $color_s, $color_u, $color_v)= -$VERSION="4.0 (build 20)"; +$VERSION="4.0 (build 21)"; $Lang="en"; # Default value @@ -2606,7 +2606,8 @@ if ($UpdateStats) { #---------------------------------------------------------------------- if (! $field[$pos_code]) { $NbOfLinesCorrupted++; - if ($ShowCorrupted) { print "Corrupted record (corrupted HTTP code): $_\n"; } + if ($ShowCorrupted && $_ =~ /^\s*$/) { print "Corrupted record (blank line)\n"; } + if ($ShowCorrupted && $_ !~ /^\s*$/) { print "Corrupted record (corrupted HTTP code): $_\n"; } if ($NbOfLinesRead >= $NbOfLinesForCorruptedLog && $NbOfLinesCorrupted == $NbOfLinesRead) { error("Format error",$_,$LogFile); } # Exit with format error next; }