Merge pull request #16880 from owncloud/webdav-verify-path
verify path when getting a node for sabredav
This commit is contained in:
commit
e5c6a9481f
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue