diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-25 14:06:48 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-17 11:35:16 +0200 |
commit | d25a9a118f7824a72f193d57373355e51323f118 (patch) | |
tree | 4606bdc2487dac92c30ad117755c89cc13f91b6b /apps/files_external/lib/swift.php | |
parent | ab79caf29bf4173e15f9dad00a206c6bb1f3999c (diff) | |
download | nextcloud-server-d25a9a118f7824a72f193d57373355e51323f118.tar.gz nextcloud-server-d25a9a118f7824a72f193d57373355e51323f118.zip |
Check if a folder is deletable before we try to recursively delete it
Diffstat (limited to 'apps/files_external/lib/swift.php')
-rw-r--r-- | apps/files_external/lib/swift.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index 1c56d180e2f..11186a9f394 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -187,7 +187,7 @@ class Swift extends \OC\Files\Storage\Common { public function rmdir($path) { $path = $this->normalizePath($path); - if (!$this->is_dir($path)) { + if (!$this->is_dir($path) or !$this->isDeletable($path)) { return false; } |