]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed rare bug of login detection when LogFormat=1 or 6.
authoreldy <>
Tue, 11 Feb 2003 13:20:36 +0000 (13:20 +0000)
committereldy <>
Tue, 11 Feb 2003 13:20:36 +0000 (13:20 +0000)
wwwroot/cgi-bin/awstats.pl

index 79b307a846e13442db0a39254a1c74d734592235..b4edad4a6a08de589f9dce2cf1e94c5a9c948407 100644 (file)
@@ -3102,7 +3102,7 @@ sub Save_History {
        if ($sectiontosave eq 'general') {
                if ($LastUpdate < int("$nowyear$nowmonth$nowday$nowhour$nowmin$nowsec")) { $LastUpdate=int("$nowyear$nowmonth$nowday$nowhour$nowmin$nowsec"); }
                print HISTORYTMP "\n";
-               print HISTORYTMP "# LastLine    = Date of last record processed - Last line offset in last log - Last line signature value\n";
+               print HISTORYTMP "# LastLine    = Date of last record processed - Last record offset in last log - Last record signature value\n";
                print HISTORYTMP "# FirstTime   = Date of first visit for history file\n";
                print HISTORYTMP "# LastTime    = Date of last visit for history file\n";
                print HISTORYTMP "# LastUpdate  = Date of last update - Nb of lines read - Nb of old records - Nb of new records - Nb of corrupted - Nb of dropped\n";
@@ -4292,7 +4292,7 @@ sub DefinePerlParsingFormat() {
        if ($LogFormat =~ /^[1-6]$/) {  # Pre-defined log format
                if ($LogFormat eq '1' || $LogFormat eq '6') {   # Same than "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"".
                        # %u (user) is "(.+)" instead of "[^ ]+" because can contain space (Lotus Notes). referer and ua might be "".
-                       $PerlParsingFormat="([^ ]+) [^ ]+ (.+) \\[([^ ]+) [^ ]+\\] \\\"([^ ]+) ([^ ]+) [^\\\"]+\\\" ([\\d|-]+) ([\\d|-]+) \\\"(.*)\\\" \\\"([^\\\"]*)\\\"";
+                       $PerlParsingFormat="([^ ]+) [^ ]+ ([^\\[]+) \\[([^ ]+) [^ ]+\\] \\\"([^ ]+) ([^ ]+) [^\\\"]+\\\" ([\\d|-]+) ([\\d|-]+) \\\"(.*)\\\" \\\"([^\\\"]*)\\\"";
                        $pos_host=0;$pos_logname=1;$pos_date=2;$pos_method=3;$pos_url=4;$pos_code=5;$pos_size=6;$pos_referer=7;$pos_agent=8;
                        @fieldlib=('host','logname','date','method','url','code','size','referer','ua');
                }