Merge pull request #16880 from owncloud/webdav-verify-path

verify path when getting a node for sabredav
This commit is contained in:
Vincent Petry 2015-06-11 15:17:15 +02:00
commit e5c6a9481f
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ class ObjectTree extends \Sabre\DAV\Tree {
throw new \Sabre\DAV\Exception\ServiceUnavailable('filesystem not setup');
}
$this->fileView->verifyPath($path, basename($path));
$path = trim($path, '/');
if (isset($this->cache[$path])) {
return $this->cache[$path];