]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Also set $UserAgent with $countedtraffic == 6 63/head
authorTomaz Solc <tomaz.solc@tablix.org>
Fri, 17 Mar 2017 11:41:46 +0000 (12:41 +0100)
committerTomaz Solc <tomaz.solc@tablix.org>
Fri, 17 Mar 2017 11:56:33 +0000 (12:56 +0100)
Browser detection is also performed with 206 status and depends on $UserAgent
being set. Without this change, $UserAgent is not refreshed and browser
detection is performed on the value from the previous request.

wwwroot/cgi-bin/awstats.pl

index 091d6823f3c230f9eefb252e39a5d22a15b8dcb0..69072a4d77e95716c878d89175060396bb12a8a4 100755 (executable)
@@ -19026,7 +19026,7 @@ if ( $UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft' )
 
                # Analyze: Robot from robot database (=> countedtraffic=4 if robot)
                #------------------------------------------------------------------
-               if ( !$countedtraffic ) {
+               if ( !$countedtraffic || $countedtraffic == 6) {
                        if ( $pos_agent >= 0 ) {
                                if ($DecodeUA) {
                                        $field[$pos_agent] =~ s/%20/_/g;