From 05cecb101d7aef2414c9ba52a69e0c457dd5e803 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Jun 2015 17:10:11 +0200 Subject: verify path when getting a node for sabredav --- lib/private/connector/sabre/objecttree.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php index c56fd7ee4db..a73c9a860b0 100644 --- a/lib/private/connector/sabre/objecttree.php +++ b/lib/private/connector/sabre/objecttree.php @@ -105,6 +105,10 @@ class ObjectTree extends \Sabre\DAV\Tree { } $path = trim($path, '/'); + if ($path) { + $this->fileView->verifyPath($path, basename($path)); + } + if (isset($this->cache[$path])) { return $this->cache[$path]; } -- cgit v1.2.3