summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-11 17:10:11 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-11 17:11:33 +0200
commit05cecb101d7aef2414c9ba52a69e0c457dd5e803 (patch)
tree8b777fc5eb5c0335b4f293e69412264127a4f6a0 /lib/private
parentcda9685c0ece25fe99a8046a94f06f145191a09d (diff)
downloadnextcloud-server-05cecb101d7aef2414c9ba52a69e0c457dd5e803.tar.gz
nextcloud-server-05cecb101d7aef2414c9ba52a69e0c457dd5e803.zip
verify path when getting a node for sabredav
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/connector/sabre/objecttree.php4
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];
}