diff options
author | Robin Appelman <robin@icewind.nl> | 2018-07-02 14:16:12 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-07-02 14:17:38 +0200 |
commit | 922c85149444b92484f38a7673cbc3b282873814 (patch) | |
tree | 1f7c40393b972d34dc51ea99e132cf9048e0f3d7 /lib | |
parent | bff20585c761cdc23394cd18f8c643a19435cffd (diff) | |
download | nextcloud-server-922c85149444b92484f38a7673cbc3b282873814.tar.gz nextcloud-server-922c85149444b92484f38a7673cbc3b282873814.zip |
fix double slash in search result path when the result is in a submount
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Node/Folder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index 95ceeee3698..0eb119eb0de 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -258,7 +258,7 @@ class Folder extends Node implements \OCP\Files\Folder { if ($storage) { $cache = $storage->getCache(''); - $relativeMountPoint = substr($mount->getMountPoint(), $rootLength); + $relativeMountPoint = ltrim(substr($mount->getMountPoint(), $rootLength), '/'); $results = call_user_func_array(array($cache, $method), $args); foreach ($results as $result) { $result['internalPath'] = $result['path']; |