Merge pull request #10079 from nextcloud/search-double-slash

fix double slash in search result path when the result is in a submount
This commit is contained in:
Morris Jobke 2018-07-02 15:49:27 +02:00 committed by GitHub
commit 48b7499fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'];