diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-30 12:18:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 12:18:54 +0200 |
commit | 5f0c21c4c005db3b87ce14ba8ee82af95b49bff4 (patch) | |
tree | 03f4f5806c7870dad75d8e3fe298e7c2c0eff18a | |
parent | efb6411e7285dac46554e83643a3255216852115 (diff) | |
parent | e9ba58ca61819048b4bf48086fc735c8ff092b85 (diff) | |
download | nextcloud-server-5f0c21c4c005db3b87ce14ba8ee82af95b49bff4.tar.gz nextcloud-server-5f0c21c4c005db3b87ce14ba8ee82af95b49bff4.zip |
Merge pull request #33734 from nextcloud/search-result-leading-slash
-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 81ca7e254d9..fb3c78bb801 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -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); } |