From: eldy <> Date: Wed, 4 Aug 2010 14:34:04 +0000 (+0000) Subject: Add: 2906096 X-Git-Tag: AWSTATS_7_0_BETA2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f04d71e65def7b8caedd244ed93db60121ed5c0;p=thirdparty%2FAWStats.git Add: 2906096 --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 26d0f730..42da1e2c 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -16981,6 +16981,15 @@ else { @DOWIndex = ( 0, 1, 2, 3, 4, 5, 6 ); } # Should we link to ourselves or to a wrapper script $AWScript = ( $WrapperScript ? "$WrapperScript" : "$DirCgi$PROG.$Extension" ); +if (index($AWScript,'?')>-1) +{ + $AWScript .= '&'; # $AWScript contains URL parameters +} +else +{ + $AWScript .= '?'; +} + # Print html header (Need HTMLOutput,Expires,Lang,StyleSheet,HTMLHeadSectionExpires defined by Read_Config, PageCode defined by Read_Language_Data) if ( !$HeaderHTMLSent ) { &html_head; }