diff options
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/amazons3.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index e24d9613759..7b593b5e263 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -148,14 +148,14 @@ class AmazonS3 extends \OC\Files\Storage\Common { $dh = $this->opendir($path); while ($file = readdir($dh)) { - if ($file == '.' || $file != '..') { + if ($file == '.' || $file == '..') { continue; } - if ($this->is_dir(stripcslashes($file))) { - $this->rmdir(stripcslashes($file)); + if ($this->is_dir($path . '/' . $file)) { + $this->rmdir($path . '/' . $file); } else { - $this->unlink(stripcslashes($file)); + $this->unlink($path . '/' . $file); } } |