Skip to content

Commit 843f6a6

Browse files
Merge pull request #62199 from nextcloud/backport/58676/stable34
[stable34] fix: don't return cache entries with null paths
2 parents 314371d + cb69bd1 commit 843f6a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/private/Files/Cache/Wrapper/CacheJail.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ protected function getJailedPath(string $path, ?string $root = null) {
101101
#[\Override]
102102
protected function formatCacheEntry($entry) {
103103
if (isset($entry['path'])) {
104-
$entry['path'] = $this->getJailedPath($entry['path']);
104+
$jailedPath = $this->getJailedPath($entry['path']);
105+
if ($jailedPath !== null) {
106+
$entry['path'] = $jailedPath;
107+
} else {
108+
return false;
109+
}
105110
}
106111
return $entry;
107112
}

0 commit comments

Comments
 (0)