[Pkg-owncloud-commits] [owncloud] 380/457: verify path when getting a node for sabredav
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 05cecb101d7aef2414c9ba52a69e0c457dd5e803
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jun 11 17:10:11 2015 +0200
verify path when getting a node for sabredav
---
lib/private/connector/sabre/objecttree.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index c56fd7e..a73c9a8 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];
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list