summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-23 22:39:29 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-23 22:39:29 -0400
commite6678bd454145ffae917d218705cfe4836bcdf93 (patch)
treec7cb3996adf083e6c2742c24de0b162ea6d4c3b0 /apps
parentb58e72cdb27d46188675484c73d2783102f7d050 (diff)
downloadnextcloud-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.php2
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);