From 66a47eedb6511eed6c74691879c77d14be7f2992 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 12 Jan 2021 15:26:26 +0100 Subject: [PATCH] fix CacheJail::filterCacheEntry when entry is already filtered Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Wrapper/CacheJail.php | 3 +++ 1 file changed, 3 insertions(+) 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() . '/'); }