Browse Source

return 403 when mkdir failed on webDAV, fixes #2127

tags/v5.0.0RC3
Arthur Schiwon 11 years ago
parent
commit
6acbadf418
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/connector/sabre/directory.php

+ 3
- 1
lib/connector/sabre/directory.php View File

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