summaryrefslogtreecommitdiff
path: root/www/awstats/patches/patch-aa
blob: 319d1f9a1e8ac16e9f6104e90910db5ec6a70244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.10 2010/11/09 07:14:48 adam Exp $

--- wwwroot/cgi-bin/awstats.pl.orig	2010-08-18 10:47:10.000000000 +0000
+++ wwwroot/cgi-bin/awstats.pl
@@ -1717,7 +1717,7 @@ sub Read_Config {
 			"/etc/opt/awstats"
 		); 
 
-	if ($configdir) {
+	if ($configdir && $ENV{"AWSTATS_ENABLE_CONFIG_DIR"}) {
 		# Check if configdir is outside default values.
 		my $outsidedefaultvalue=1;
 		foreach (@PossibleConfigDir) {