diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-04-25 10:15:02 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-04-25 10:15:02 +0200 |
commit | a3dcd9434bb27930838f4b46a92610603cca0cf6 (patch) | |
tree | 2f6f31bb980ffaa32375e4f846feb4aab2d326dc /system | |
parent | e7bbb1dc97c6f2027db5f24383f8d93c4ba41d82 (diff) | |
parent | 14c350c77c232ab7a5cf68c30fdbab5cdac2d403 (diff) |
Merge pull request #1289 from st2/patch-2
Same Issue on #1238 at IIS System
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/file_helper.php | 2 |
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); } |