[Pkg-owncloud-commits] [php-sabredav] 03/15: Revert "Do not prepend / if the basepath is empty"
David Prévot
taffit at moszumanska.debian.org
Tue Jan 5 03:11:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch 2.1
in repository php-sabredav.
commit 321926e17a06689afce5633d2ea3769dac55359e
Author: Evert Pot <me at evertpot.com>
Date: Mon Oct 26 23:21:12 2015 -0400
Revert "Do not prepend / if the basepath is empty"
---
lib/DAV/Tree.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/DAV/Tree.php b/lib/DAV/Tree.php
index f4c2f23..f030a19 100644
--- a/lib/DAV/Tree.php
+++ b/lib/DAV/Tree.php
@@ -193,8 +193,7 @@ class Tree {
$node = $this->getNodeForPath($path);
$children = $node->getChildren();
- $basePath = trim($path,'/');
- $basePath .= $basePath === '' ? '' : '/';
+ $basePath = trim($path,'/') . '/';
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