mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #58676 from nextcloud/jail-wrapper-null-paths
fix: don't return cache entries with null paths
This commit is contained in:
commit
ef87e2e564
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue