Skip to content

Commit bd0dbff

Browse files
Merge pull request #61843 from nextcloud/backport/61841/stable33
[stable33] fix(Sharing): Don't break cache entry by setting path to null
2 parents 0f03c47 + 3d491ef commit bd0dbff

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/files_sharing/lib/Cache.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
124124
protected function formatCacheEntry($entry, $path = null) {
125125
if (is_null($path)) {
126126
$path = $entry['path'] ?? '';
127-
$entry['path'] = $this->getJailedPath($path);
127+
$jailedPath = $this->getJailedPath($path);
128+
if ($jailedPath === null) {
129+
return false;
130+
}
131+
$entry['path'] = $jailedPath;
128132
} else {
129133
$entry['path'] = $path;
130134
}

0 commit comments

Comments
 (0)