From 4d10dab813b578697aaf856833f1aa334d0ee1a8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Jun 2015 14:12:04 +0200 Subject: [PATCH] verify path when getting a node for sabredav --- lib/private/connector/sabre/objecttree.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php index c56fd7ee4db..b4acbfaafa7 100644 --- a/lib/private/connector/sabre/objecttree.php +++ b/lib/private/connector/sabre/objecttree.php @@ -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];