Merge pull request #2134 from owncloud/fix_2127

return 403 when mkdir failed on webDAV, fixes #2127
remotes/origin/stable5
blizzz 12 years ago
commit e5a497c924
  1. 4
      lib/connector/sabre/directory.php

@ -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…
Cancel
Save