verify path when getting a node for sabredav

This commit is contained in:
Robin Appelman 2015-06-11 14:12:04 +02:00
parent fee52f7f44
commit 4d10dab813
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];