Skip to content

Commit 68dd6ac

Browse files
Merge pull request #61841 from nextcloud/fix/dont-break-cache-entry
fix(Sharing): Don't break cache entry by setting path to null
2 parents 92f7adc + f5f88f9 commit 68dd6ac

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
@@ -135,7 +135,11 @@ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
135135
protected function formatCacheEntry($entry, $path = null) {
136136
if (is_null($path)) {
137137
$path = $entry['path'] ?? '';
138-
$entry['path'] = $this->getJailedPath($path);
138+
$jailedPath = $this->getJailedPath($path);
139+
if ($jailedPath === null) {
140+
return false;
141+
}
142+
$entry['path'] = $jailedPath;
139143
} else {
140144
$entry['path'] = $path;
141145
}

0 commit comments

Comments
 (0)