summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-06-12 16:45:20 +0200
committerVincent Petry <pvince81@owncloud.com>2015-06-12 16:45:20 +0200
commit446f628136532fe556757c3fe39655c6304e3cb9 (patch)
tree26d37d32ab4fa033b32f6377bc78899835fb3617 /lib
parentbb0ea6336df84d391c0d972a56f27077f632948c (diff)
parent5a5639ab763662d8105bc61c5f124fcc99a7a813 (diff)
downloadnextcloud-server-446f628136532fe556757c3fe39655c6304e3cb9.tar.gz
nextcloud-server-446f628136532fe556757c3fe39655c6304e3cb9.zip
Merge pull request #16886 from owncloud/webdav-verify-path-again
verify path when getting a node for sabredav
Diffstat (limited to 'lib')
-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];
}