Skip to content

Commit d842d58

Browse files
Merge pull request #61835 from nextcloud/backport/58676/stable33
[stable33] fix: don't return cache entries with null paths
2 parents de31b5d + f76ff18 commit d842d58

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
@@ -100,7 +100,12 @@ protected function getJailedPath(string $path, ?string $root = null) {
100100

101101
protected function formatCacheEntry($entry) {
102102
if (isset($entry['path'])) {
103-
$entry['path'] = $this->getJailedPath($entry['path']);
103+
$jailedPath = $this->getJailedPath($entry['path']);
104+
if ($jailedPath !== null) {
105+
$entry['path'] = $jailedPath;
106+
} else {
107+
return false;
108+
}
104109
}
105110
return $entry;
106111
}

0 commit comments

Comments
 (0)