diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-11 14:12:04 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-11 14:12:04 +0200 |
commit | 4d10dab813b578697aaf856833f1aa334d0ee1a8 (patch) | |
tree | 78ffdc6a4c4ee5b5789b754c07a826a1017a67f8 /lib/private/connector | |
parent | fee52f7f44d4c82ce2756cbf5976fa43e59c5d34 (diff) | |
download | nextcloud-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.php | 2 |
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]; |