summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-04-25 10:15:02 +0200
committerAndrey Andreev <narf@bofh.bg>2012-04-25 10:15:02 +0200
commita3dcd9434bb27930838f4b46a92610603cca0cf6 (patch)
tree2f6f31bb980ffaa32375e4f846feb4aab2d326dc
parente7bbb1dc97c6f2027db5f24383f8d93c4ba41d82 (diff)
parent14c350c77c232ab7a5cf68c30fdbab5cdac2d403 (diff)
Merge pull request #1289 from st2/patch-2
Same Issue on #1238 at IIS System
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 3a373efd3..a5aabecd6 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -145,7 +145,7 @@ if ( ! function_exists('delete_files'))
{
delete_files($path.DIRECTORY_SEPARATOR.$filename, $del_dir, $level + 1, $htdocs);
}
- elseif ($htdocs === TRUE && ! preg_match('/^(\.htaccess|index\.(html|htm|php))$/', $filename))
+ elseif ($htdocs === TRUE && ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename))
{
@unlink($path.DIRECTORY_SEPARATOR.$filename);
}