summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-02 15:49:27 +0200
committerGitHub <noreply@github.com>2018-07-02 15:49:27 +0200
commit48b7499fa457272a1ac74dd38d7019b8c62ae6f3 (patch)
treeba38d69c6bdce7217f4abc2c441aeb2ca034f159 /lib/private/Files
parent6e9dbe7d15aae78ccb7b489fdfee75c0af88837d (diff)
parent922c85149444b92484f38a7673cbc3b282873814 (diff)
downloadnextcloud-server-48b7499fa457272a1ac74dd38d7019b8c62ae6f3.tar.gz
nextcloud-server-48b7499fa457272a1ac74dd38d7019b8c62ae6f3.zip
Merge pull request #10079 from nextcloud/search-double-slash
fix double slash in search result path when the result is in a submount
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Node/Folder.php2
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'];