mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
remove leading slash for search results at mountpoint root
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
d7deeb4e02
commit
e9ba58ca61
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ class Folder extends Node implements \OCP\Files\Folder {
|
|||
|
||||
private function cacheEntryToFileInfo(IMountPoint $mount, string $appendRoot, ICacheEntry $cacheEntry): FileInfo {
|
||||
$cacheEntry['internalPath'] = $cacheEntry['path'];
|
||||
$cacheEntry['path'] = $appendRoot . $cacheEntry->getPath();
|
||||
$cacheEntry['path'] = rtrim($appendRoot . $cacheEntry->getPath(), '/');
|
||||
$subPath = $cacheEntry['path'] !== '' ? '/' . $cacheEntry['path'] : '';
|
||||
return new \OC\Files\FileInfo($this->path . $subPath, $mount->getStorage(), $cacheEntry['internalPath'], $cacheEntry, $mount);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue