diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-07-27 09:36:29 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-07-27 09:36:29 +0200 |
commit | 27228c97d6f2bc44cf8913c2b0d2e2ee439eb696 (patch) | |
tree | e5eda8d4353c5bf15aa25264acc59a2400511bda /system/helpers/file_helper.php | |
parent | f0ecb55dfe8dbfaf4c65dbe9d7e1bba8c131ebf4 (diff) |
Improve change from f0ecb55dfe8dbfaf4c65dbe9d7e1bba8c131ebf4 and add changelog entries for pull #1654
Diffstat (limited to 'system/helpers/file_helper.php')
-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 b6c95d554..e68bb7f7a 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -124,7 +124,7 @@ if ( ! function_exists('delete_files')) { delete_files($path.DIRECTORY_SEPARATOR.$filename, $del_dir, $level + 1, $htdocs); } - elseif ($htdocs === FALSE OR ($htdocs === TRUE && ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename))) + elseif ($htdocs !== TRUE OR ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) { @unlink($path.DIRECTORY_SEPARATOR.$filename); } |