From 839ab7f2e6d4b70a30a5d6ef4f121d9e5cc8f802 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 3 Jul 2013 18:33:15 +0200 Subject: [PATCH] fixing rmdir in \OC\Files\Storage\AmazonS3 --- apps/files_external/lib/amazons3.php | 8 ++++---- 1 file 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); } }