From: eldy <> Date: Mon, 3 Mar 2003 10:28:34 +0000 (+0000) Subject: Fix in screen size detection for IIS in pos_query mode. X-Git-Tag: AWSTATS_5_5_BETA~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168ddce909df54f1159fb721909cb11bc4675a15;p=thirdparty%2FAWStats.git Fix in screen size detection for IIS in pos_query mode. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 07cff2c3..b3db9f6d 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -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 #-------------------------