]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Sanitizing of parameter (in fact all parameters)
authoreldy <>
Sat, 6 May 2006 02:20:26 +0000 (02:20 +0000)
committereldy <>
Sat, 6 May 2006 02:20:26 +0000 (02:20 +0000)
wwwroot/cgi-bin/awstats.pl

index fac888b31ffbc69b4552fb40dbfb14a4476f1c26..ee2e1426e7b85583b4a591896f1e8ae9f55bb5be 100644 (file)
@@ -1134,11 +1134,14 @@ sub Read_Config {
        if ($configdir)
        {
                # 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");
-               }
-               else { @PossibleConfigDir=("$configdir"); }
+               #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");
+               #}
+               #else
+               #{
+                       @PossibleConfigDir=("$configdir");
+               #}
        }
        else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }