]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing rmdir in \OC\Files\Storage\AmazonS3
authorChristian Berendt <berendt@b1-systems.de>
Wed, 3 Jul 2013 16:33:15 +0000 (18:33 +0200)
committerChristian Berendt <berendt@b1-systems.de>
Wed, 3 Jul 2013 16:33:15 +0000 (18:33 +0200)
apps/files_external/lib/amazons3.php

index e24d9613759e98307c8a74f3d48e7719f6f91bde..7b593b5e2638539e347fda7394af5065a147ea21 100644 (file)
@@ -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);
                        }
                        }