Skip to content

Commit 0e9b163

Browse files
committed
fix(jailed-storage): Fix null returned by jailed storage
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent eaa3fdc commit 0e9b163

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/CacheWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ protected function formatCacheEntry($entry) {
4141
$path = $entry['path'];
4242
if ($storage?->instanceOfStorage(Jail::class)) {
4343
/** @var Jail $storage */
44-
$path = $storage->getJailedPath($path);
44+
$jailedPath = $storage->getJailedPath($path);
45+
$path = $jailedPath ?? $path;
4546
}
4647
$this->operation->checkFileAccess($path, $this->mountPoint, $entry['mimetype'] === 'httpd/unix-directory', $entry);
4748
} catch (ForbiddenException) {

0 commit comments

Comments
 (0)