]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix in screen size detection for IIS in pos_query mode.
authoreldy <>
Mon, 3 Mar 2003 10:28:34 +0000 (10:28 +0000)
committereldy <>
Mon, 3 Mar 2003 10:28:34 +0000 (10:28 +0000)
wwwroot/cgi-bin/awstats.pl

index 07cff2c3ddc90f191f9948ebcebc5dac07ee3670..b3db9f6d29fcb848e1dad2fc2fe6f74e49e30509 100644 (file)
@@ -5133,7 +5133,12 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat
 
                # Check screen size
                #------------------
-               if ($field[$pos_url] =~ /$LogScreenSizeUrl\?w=(\d+)&h=(\d+)/) { $_screensize_h{"$1x$2"}++; next; }
+               if ($field[$pos_url] =~ /$LogScreenSizeUrl/) {
+                       if ($pos_query >=0 && $field[$pos_query]) { # For this fucking IIS in pos_query mode
+                               if ($field[$pos_query] =~ /w=(\d+)&h=(\d+)/) { $_screensize_h{"$1x$2"}++; next; }
+                       }
+                       elsif ($field[$pos_url] =~ /w=(\d+)&h=(\d+)/) { $_screensize_h{"$1x$2"}++; next; }
+               }
                
                # Check return status code
                #-------------------------