Merge pull request #58676 from nextcloud/jail-wrapper-null-paths

fix: don't return cache entries with null paths
pull/54912/merge
Stephan Orbaugh 2 months ago committed by GitHub
commit ef87e2e564
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      lib/private/Files/Cache/Wrapper/CacheJail.php

@ -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…
Cancel
Save