]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix 2906095
authoreldy <>
Wed, 4 Aug 2010 13:44:58 +0000 (13:44 +0000)
committereldy <>
Wed, 4 Aug 2010 13:44:58 +0000 (13:44 +0000)
wwwroot/cgi-bin/awstats.pl

index 56fe2714884cdc5e6f283e25d5624d57a47e5dd1..26d0f7308648b33a273ca3f98fac2a16fa64d3fd 100644 (file)
@@ -1846,8 +1846,7 @@ sub Parse_Config {
                                $includeFile =~ s/__${var}__/$ENV{$var}/g;
                        }
                        if ($Debug) { debug( "Found an include : $includeFile", 2 ); }
-                       if ( $includeFile !~ /^[\\\/]/ ) {
-
+                       if ( $includeFile !~ /^([a-zA-Z]:)?[\\\/]/ ) {
                                # Correct relative include files
                                if ( $FileConfig =~ /^(.*[\\\/])[^\\\/]*$/ ) {
                                        $includeFile = "$1$includeFile";