commit | 0c2309719369c4565c8e8987c75d21eff3279c5c | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Apr 09 20:51:34 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Wed Apr 09 20:51:34 2014 +0300 |
tree | 43d0fb29cea58e52b546495c90fdd5fb268a2c93 | |
parent | 9a0e0c76b64d2a401d7ae32d1e53aaca30c7d959 [diff] |
Issue/PR #2997
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php index 8401a38..5a856f1 100644 --- a/system/libraries/Ftp.php +++ b/system/libraries/Ftp.php
@@ -477,7 +477,7 @@ { // If we can't delete the item it's probaly a directory, // so we'll recursively call delete_dir() - if ( ! @ftp_delete($this->conn_id, $list[$i])) + if ( ! in_array($list[$i], array('.', '..'), TRUE) && ! @ftp_delete($this->conn_id, $list[$i])) { $this->delete_dir($list[$i]); }