diff options
author | Robin Appelman <robin@icewind.nl> | 2021-08-23 17:27:53 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-08-23 17:27:53 +0300 |
commit | c6887031174cc070dd14b1a8f4816279f61909c6 (patch) | |
tree | 892f0672628def316852071559f52e5667b206f3 /lib/private/Files/Cache | |
parent | a8547cc0eadb4e92e1730b98424a413f22f76b50 (diff) |
use getGetUnjailedRoot to determine if jailed search needs the path filter
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheJail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 2dff76333ad..d0fb43c10be 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -306,7 +306,7 @@ class CacheJail extends CacheWrapper { } public function getQueryFilterForStorage(): ISearchOperator { - if ($this->root !== '' && $this->root !== '/') { + if ($this->getGetUnjailedRoot() !== '' && $this->getGetUnjailedRoot() !== '/') { return new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_AND, [ $this->getCache()->getQueryFilterForStorage(), |