Permission check should be made on parent folder when creating a new folder
This commit is contained in:
parent
b58e72cdb2
commit
e6678bd454
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue