summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/amazons3.php
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-07-03 18:33:15 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-07-03 18:33:15 +0200
commit839ab7f2e6d4b70a30a5d6ef4f121d9e5cc8f802 (patch)
treede1b5ad75b280854ff9ee01deaa9becd7feb5deb /apps/files_external/lib/amazons3.php
parent0a5e18335ec4fef9fc0ea7b6778628b7471962bd (diff)
downloadnextcloud-server-839ab7f2e6d4b70a30a5d6ef4f121d9e5cc8f802.tar.gz
nextcloud-server-839ab7f2e6d4b70a30a5d6ef4f121d9e5cc8f802.zip
fixing rmdir in \OC\Files\Storage\AmazonS3
Diffstat (limited to 'apps/files_external/lib/amazons3.php')
-rw-r--r--apps/files_external/lib/amazons3.php8
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);
}
}