diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-08-25 14:21:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 14:21:41 +0300 |
commit | 34b5d979ffa7734ce9735d814f581ef63f236525 (patch) | |
tree | 67d77b0750c07dbeecbde3e4097e1319c822614f | |
parent | 2a928d46d46d83fd93bfb5a7ef492c7e7cc172b8 (diff) | |
parent | 9e5440abc30a82345d779f4468feeb6129502903 (diff) |
Merge pull request #28583 from nextcloud/backport/28566/stable22
[stable22] use getGetUnjailedRoot to determine if jailed search needs the path filter
-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 a01b130b487..540b6f7b8c3 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(), |