mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 15:16:45 +02:00
Merge pull request #2134 from owncloud/fix_2127
return 403 when mkdir failed on webDAV, fixes #2127
This commit is contained in:
commit
e5a497c924
@ -107,7 +107,9 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
|
||||
public function createDirectory($name) {
|
||||
|
||||
$newPath = $this->path . '/' . $name;
|
||||
\OC\Files\Filesystem::mkdir($newPath);
|
||||
if(!\OC\Files\Filesystem::mkdir($newPath)) {
|
||||
throw new Sabre_DAV_Exception_Forbidden('Could not create directory '.$newPath);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user