X Tutup
Skip to content

Commit 7b66c0a

Browse files
committed
Fix search inside a shared external storage
1 parent 803ffff commit 7b66c0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/private/Files/Cache/Wrapper/CacheJail.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ protected function formatCacheEntry($entry) {
8484
}
8585

8686
protected function filterCacheEntry($entry) {
87+
if ($this->root === '') {
88+
return true;
89+
}
8790
$rootLength = \strlen($this->root) + 1;
8891
return ($entry['path'] === $this->root) or (\substr($entry['path'], 0, $rootLength) === $this->root . '/');
8992
}

0 commit comments

Comments
 (0)
X Tutup