Browse Source

Validate path in getChild

tags/v8.1RC2
Vincent Petry 9 years ago
parent
commit
06dda427f3
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/private/connector/sabre/directory.php

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

@@ -150,9 +150,12 @@ class Directory extends \OC\Connector\Sabre\Node
$path = $this->path . '/' . $name;
if (is_null($info)) {
try {
$this->fileView->verifyPath($this->path, $name);
$info = $this->fileView->getFileInfo($path);
} catch (\OCP\Files\StorageNotAvailableException $e) {
throw new \Sabre\DAV\Exception\ServiceUnavailable($e->getMessage());
} catch (\OCP\Files\InvalidPathException $ex) {
throw new InvalidPath($ex->getMessage());
}
}


Loading…
Cancel
Save