summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-11 14:12:04 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-11 14:12:04 +0200
commit4d10dab813b578697aaf856833f1aa334d0ee1a8 (patch)
tree78ffdc6a4c4ee5b5789b754c07a826a1017a67f8 /lib/private/connector
parentfee52f7f44d4c82ce2756cbf5976fa43e59c5d34 (diff)
downloadnextcloud-server-4d10dab813b578697aaf856833f1aa334d0ee1a8.tar.gz
nextcloud-server-4d10dab813b578697aaf856833f1aa334d0ee1a8.zip
verify path when getting a node for sabredav
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/objecttree.php2
1 files changed, 2 insertions, 0 deletions
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];