]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed a bug in URL report when URLWithQuery=1.
authoreldy <>
Thu, 19 Sep 2002 00:02:39 +0000 (00:02 +0000)
committereldy <>
Thu, 19 Sep 2002 00:02:39 +0000 (00:02 +0000)
wwwroot/cgi-bin/awstats.pl

index 5b58059b015ea224ee510010031481c3122ab649..9f356526b0b210d49abe58cfff359fc009a9f06a 100644 (file)
@@ -4362,8 +4362,8 @@ if ($UpdateStats && $FrameName ne "index" && $FrameName ne "mainleft") {  # Updat
                if ($URLWithQuery) {
                        $urlwithnoquery=$field[$pos_url];
                        $urlwithnoquery =~ s/\?.*//;
-                       # We combine the URL and query strings.
-                       if ($field[$pos_query] && ($field[$pos_query] ne "-")) { $field[$pos_url] .= "?" . $field[$pos_query]; }
+                       # We combine the URL and query strings (for some IIS setup).
+                       if ($pos_query >=0 && $field[$pos_query] && $field[$pos_query] ne "-") { $field[$pos_url] .= "?" . $field[$pos_query]; }
                }
                else {
                        # Trunc CGI parameters in URL