[Pkg-owncloud-commits] [owncloud] 29/121: trim leading slash
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 16:44:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 221312709407ba01432acda98e20d2ab8e73d205
Author: Robin Appelman <icewind at owncloud.com>
Date: Wed Aug 6 14:57:54 2014 +0200
trim leading slash
---
apps/files_sharing/lib/cache.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index d0a6d4a..fbbff47 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -438,7 +438,7 @@ class Shared_Cache extends Cache {
public function getPathById($id, $pathEnd = '') {
// direct shares are easy
if ($id === $this->storage->getSourceId()) {
- return $pathEnd;
+ return ltrim($pathEnd, '/');
} else {
// if the item is a direct share we try and get the path of the parent and append the name of the item to it
list($parent, $name) = $this->getParentInfo($id);
--
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