[Pkg-owncloud-commits] [php-sabredav] 04/19: Fix caching of root-level nodes.
David Prévot
taffit at moszumanska.debian.org
Tue Jan 5 03:12:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 3.0.6
in repository php-sabredav.
commit 6223d06b7e0e87e0253542db31d12bd8ec967c96
Author: Evert Pot <me at evertpot.com>
Date: Mon Oct 26 22:57:02 2015 -0400
Fix caching of root-level nodes.
---
lib/DAV/Tree.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/DAV/Tree.php b/lib/DAV/Tree.php
index f6e64bc..2df5444 100644
--- a/lib/DAV/Tree.php
+++ b/lib/DAV/Tree.php
@@ -193,7 +193,9 @@ class Tree {
$node = $this->getNodeForPath($path);
$children = $node->getChildren();
- $basePath = trim($path, '/') . '/';
+ $basePath = trim($path, '/');
+ if ($basePath !== '') $basePath.='/';
+
foreach ($children as $child) {
$this->cache[$basePath . $child->getName()] = $child;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list