diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-23 22:39:29 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-23 22:39:29 -0400 |
commit | e6678bd454145ffae917d218705cfe4836bcdf93 (patch) | |
tree | c7cb3996adf083e6c2742c24de0b162ea6d4c3b0 /apps | |
parent | b58e72cdb27d46188675484c73d2783102f7d050 (diff) | |
download | nextcloud-server-e6678bd454145ffae917d218705cfe4836bcdf93.tar.gz nextcloud-server-e6678bd454145ffae917d218705cfe4836bcdf93.zip |
Permission check should be made on parent folder when creating a new folder
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index f2379b7be25..5cdce57482c 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); |