]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Copy of new config fails
authoreldy <>
Wed, 22 Mar 2006 20:58:38 +0000 (20:58 +0000)
committereldy <>
Wed, 22 Mar 2006 20:58:38 +0000 (20:58 +0000)
tools/webmin/awstats/edit_config.cgi

index c8a07b2f6904c2b0f80b7e69c88c9e2e2fb47ebc..23d5d850275de9c416195ced77301548bf4bb367 100644 (file)
@@ -37,7 +37,7 @@ foreach my $key (keys %$lconf) {
 # Put in @conflist, list of all existing config
 my @conflist=();
 foreach my $dir (split(/\s+/, $access{'dir'})) {
-       push(@conflist, map { $_->{'custom'} = 1; $_ } &scan_config_dir($dir));
+       push(@conflist, map { $_->{'custom'} = 1; ($_ !~ /^[\/\\]/ ? $dir.'/':'').$_ } &scan_config_dir($dir));
 }