Merge pull request #58676 from nextcloud/jail-wrapper-null-paths

fix: don't return cache entries with null paths
This commit is contained in:
Stephan Orbaugh 2026-06-09 17:25:34 +02:00 committed by GitHub
commit ef87e2e564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,12 @@ class CacheJail extends CacheWrapper {
#[\Override]
protected function formatCacheEntry($entry) {
if (isset($entry['path'])) {
$entry['path'] = $this->getJailedPath($entry['path']);
$jailedPath = $this->getJailedPath($entry['path']);
if ($jailedPath !== null) {
$entry['path'] = $jailedPath;
} else {
return false;
}
}
return $entry;
}