summaryrefslogtreecommitdiff
path: root/www/awstats/patches/patch-aa
blob: ea9674a42ca1f473e60c6be5b06752f7ecbae654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.8 2008/04/07 07:21:00 adam Exp $

--- wwwroot/cgi-bin/awstats.pl.orig	2007-07-07 13:00:06.000000000 +0200
+++ wwwroot/cgi-bin/awstats.pl
@@ -1141,7 +1141,7 @@ sub Read_Config {
 	my $configdir=shift;
 	my @PossibleConfigDir=();
 
-	if ($configdir)
+	if ($configdir && $ENV{"AWSTATS_ENABLE_CONFIG_DIR"})
 	{
 		# If from CGI, overwriting of configdir is only possible if AWSTATS_ENABLE_CONFIG_DIR defined
 		#if ($ENV{'GATEWAY_INTERFACE'} && ! $ENV{"AWSTATS_ENABLE_CONFIG_DIR"})