verify path when getting a node for sabredav
This commit is contained in:
parent
fee52f7f44
commit
4d10dab813
|
@ -104,6 +104,8 @@ class ObjectTree extends \Sabre\DAV\Tree {
|
||||||
throw new \Sabre\DAV\Exception\ServiceUnavailable('filesystem not setup');
|
throw new \Sabre\DAV\Exception\ServiceUnavailable('filesystem not setup');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->fileView->verifyPath($path, basename($path));
|
||||||
|
|
||||||
$path = trim($path, '/');
|
$path = trim($path, '/');
|
||||||
if (isset($this->cache[$path])) {
|
if (isset($this->cache[$path])) {
|
||||||
return $this->cache[$path];
|
return $this->cache[$path];
|
||||||
|
|
Loading…
Reference in New Issue