diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-22 16:05:30 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-07 21:51:10 +0200 |
commit | d2dbab21fb2e13498c30533740fd64428134616d (patch) | |
tree | e12986806cd6ea677a0d3b8dac2d615002b9b4a9 /lib/private | |
parent | a152f3a50fbae79c2fae98cf013aa71ca82174fb (diff) | |
download | nextcloud-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.php | 4 |
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, '/'); } } } |