Skip to content

Commit

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

[stable25] still include the share target in the cache key for validating share mount
  • Loading branch information
PVince81 committed Jan 16, 2023
2 parents f74ba9c + 953f9ea commit ff90735
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 ff90735

Please sign in to comment.