summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorst2 <st2@webxway.com>2012-04-24 20:48:49 +0200
committerst2 <st2@webxway.com>2012-04-24 20:48:49 +0200
commit14c350c77c232ab7a5cf68c30fdbab5cdac2d403 (patch)
tree2f6f31bb980ffaa32375e4f846feb4aab2d326dc
parente7bbb1dc97c6f2027db5f24383f8d93c4ba41d82 (diff)
Update system/helpers/file_helper.php
-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);
}