From e6678bd454145ffae917d218705cfe4836bcdf93 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 23 Jul 2012 22:39:29 -0400 Subject: [PATCH] Permission check should be made on parent folder when creating a new folder --- apps/files_sharing/sharedstorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index f2379b7be2..5cdce57482 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -99,7 +99,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common { } public function mkdir($path) { - if ($path == '' || $path == '/' || !$this->is_writable($path)) { + if ($path == '' || $path == '/' || !$this->is_writable(dirname($path))) { return false; } else if ($source = $this->getSourcePath($path)) { $storage = OC_Filesystem::getStorage($source);