Skip to content

Commit

Permalink
Merge pull request #36161 from nextcloud/bugfix/36153/fix-sharemount-…
Browse files Browse the repository at this point in the history
…cache-key-include-target

still include the share target in the cache key for validating share mount
  • Loading branch information
PVince81 authored Jan 16, 2023
2 parents bfcb269 + c105b6a commit 018a597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/SharedMount.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function verifyMountPoint(
array $mountpoints,
CappedMemoryCache $folderExistCache
) {
$cacheKey = $this->user->getUID() . '/' . $share->getId();
$cacheKey = $this->user->getUID() . '/' . $share->getId() . '/' . $share->getTarget();
$cached = $this->cache->get($cacheKey);
if ($cached !== null) {
return $cached;
Expand Down

0 comments on commit 018a597

Please sign in to comment.