diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-11 17:10:11 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-11 17:11:33 +0200 |
commit | 05cecb101d7aef2414c9ba52a69e0c457dd5e803 (patch) | |
tree | 8b777fc5eb5c0335b4f293e69412264127a4f6a0 /lib/private/connector/sabre/objecttree.php | |
parent | cda9685c0ece25fe99a8046a94f06f145191a09d (diff) | |
download | nextcloud-server-05cecb101d7aef2414c9ba52a69e0c457dd5e803.tar.gz nextcloud-server-05cecb101d7aef2414c9ba52a69e0c457dd5e803.zip |
verify path when getting a node for sabredav
Diffstat (limited to 'lib/private/connector/sabre/objecttree.php')
-rw-r--r-- | lib/private/connector/sabre/objecttree.php | 4 |
1 files changed, 4 insertions, 0 deletions
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]; } |