diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 6c1c17be028c2..6eebb07e9728e 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -93,6 +93,9 @@ protected function formatCacheEntry($entry) { } protected function filterCacheEntry($entry) { + if ($entry === false) { + return false; + } $rootLength = strlen($this->getRoot()) + 1; return $rootLength === 1 || ($entry['path'] === $this->getRoot()) || (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/'); }