We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 204466c + 8b03bf7 commit b899964Copy full SHA for b899964
1 file changed
lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -93,7 +93,7 @@ protected function formatCacheEntry($entry) {
93
94
protected function filterCacheEntry($entry) {
95
$rootLength = strlen($this->getRoot()) + 1;
96
- return ($entry['path'] === $this->getRoot()) or (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/');
+ return $rootLength === 1 || ($entry['path'] === $this->getRoot()) || (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/');
97
}
98
99
/**
0 commit comments