Merge pull request #36049 from nextcloud/backport/36047/stable25

[stable25] fix cache key used to verify shared mountpoints
This commit is contained in:
Vincent Petry 2023-01-09 17:12:41 +01:00 committed by GitHub
commit a398872711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ class SharedMount extends MountPoint implements MoveableMount {
array $mountpoints,
CappedMemoryCache $folderExistCache
) {
$cacheKey = $this->user->getUID() . '/' . $share->getTarget();
$cacheKey = $this->user->getUID() . '/' . $share->getId();
$cached = $this->cache->get($cacheKey);
if ($cached !== null) {
return $cached;