Permission check should be made on parent folder when creating a new folder

This commit is contained in:
Michael Gapczynski 2012-07-23 22:39:29 -04:00
parent b58e72cdb2
commit e6678bd454

View file

@ -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);