Skip to content

Commit f76ff18

Browse files
icewind1991AndyScherzinger
authored andcommitted
fix: don't return cache entries with null paths
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 5e0a003 commit f76ff18

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)