From: eldy <> Date: Tue, 10 Dec 2002 21:11:20 +0000 (+0000) Subject: Fixed: Problem with #include. X-Git-Tag: AWSTATS_5_3_BETA~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16df3efa099a0bf2cbd6f90a4063342297f04d31;p=thirdparty%2FAWStats.git Fixed: Problem with #include. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 703bf374..32b112ee 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1021,9 +1021,9 @@ sub Parse_Config { # Correct relative include files if ( $includeFile !~ m|^[\\/]| ) { my $configDir = $FileConfig; - $configDir =~ s|[\\/][^\\/]*$|/|; - $includeFile = "$configDir$includeFile"; - } + if ($configDir =~ s|[\\/][^\\/]*$|/|) { $includeFile = "$configDir$includeFile"; } + else { $includeFile = "$includeFile"; } + } if ( open( CONFIG_INCLUDE, $includeFile ) ) { &Parse_Config( *CONFIG_INCLUDE , $level+1, $includeFile); close( CONFIG_INCLUDE );