]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Sanitize configdir to disable usage of external path in cgi mode.
authoreldy <>
Mon, 24 May 2010 00:53:20 +0000 (00:53 +0000)
committereldy <>
Mon, 24 May 2010 00:53:20 +0000 (00:53 +0000)
wwwroot/cgi-bin/awstats.pl

index 825be66b5fde4833ab3a3cb23efc0c01c8225431..757fa4b10724c2cf018c83cb74897289ac3420f2 100644 (file)
@@ -1667,7 +1667,7 @@ sub Read_Config {
                # If from CGI, overwriting of configdir is only possible if AWSTATS_ENABLE_CONFIG_DIR defined
                if ($ENV{'GATEWAY_INTERFACE'} && ! $ENV{"AWSTATS_ENABLE_CONFIG_DIR"})
                {
-                       error("Sorry, to allow overwriting of configdir parameter from an AWStats CGI usage, environment variable AWSTATS_ENABLE_CONFIG_DIR must be set to 1");
+                       error("Sorry, to allow overwriting of configdir parameter from an AWStats CGI usage, environment variable AWSTATS_ENABLE_CONFIG_DIR must be set to 1. For example, by adding the line 'SetEnv AWSTATS_ENABLE_CONFIG_DIR 1' in your Apache config file or into a .htaccess file.");
                }
                else
                {