summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-22 16:05:30 +0200
committerRobin Appelman <icewind@owncloud.com>2014-05-07 21:51:10 +0200
commitd2dbab21fb2e13498c30533740fd64428134616d (patch)
treee12986806cd6ea677a0d3b8dac2d615002b9b4a9 /lib/private
parenta152f3a50fbae79c2fae98cf013aa71ca82174fb (diff)
downloadnextcloud-server-d2dbab21fb2e13498c30533740fd64428134616d.tar.gz
nextcloud-server-d2dbab21fb2e13498c30533740fd64428134616d.zip
Fix getPath for storage roots
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 70affde1b11..8309dab978b 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1101,10 +1101,10 @@ class View {
* @var \OC\Files\Mount\Mount $mount
*/
$cache = $mount->getStorage()->getCache();
- if ($internalPath = $cache->getPathById($id)) {
+ if (!is_null($internalPath = $cache->getPathById($id))) {
$fullPath = $mount->getMountPoint() . $internalPath;
if (!is_null($path = $this->getRelativePath($fullPath))) {
- return $path;
+ return rtrim($path, '/');
}
}
}