From 3d491ef7868cbd2df19bcba34cbe61518ba762d6 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 6 Jul 2026 14:00:30 +0200 Subject: [PATCH] fix(Sharing): Don't break cache entry by setting path to null see #58676 Signed-off-by: Marcel Klehr --- apps/files_sharing/lib/Cache.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index f9042fc076569..beba9b5724500 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -124,7 +124,11 @@ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) { protected function formatCacheEntry($entry, $path = null) { if (is_null($path)) { $path = $entry['path'] ?? ''; - $entry['path'] = $this->getJailedPath($path); + $jailedPath = $this->getJailedPath($path); + if ($jailedPath === null) { + return false; + } + $entry['path'] = $jailedPath; } else { $entry['path'] = $path; }