summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-04-09 19:51:34 +0200
committerAndrey Andreev <narf@devilix.net>2014-04-09 19:51:34 +0200
commit0c2309719369c4565c8e8987c75d21eff3279c5c (patch)
tree43d0fb29cea58e52b546495c90fdd5fb268a2c93
parent9a0e0c76b64d2a401d7ae32d1e53aaca30c7d959 (diff)
Issue/PR #2997
-rw-r--r--system/libraries/Ftp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php
index 8401a380e..5a856f158 100644
--- a/system/libraries/Ftp.php
+++ b/system/libraries/Ftp.php
@@ -477,7 +477,7 @@ class CI_FTP {
{
// 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]);
}