mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #28583 from nextcloud/backport/28566/stable22
[stable22] use getGetUnjailedRoot to determine if jailed search needs the path filter
This commit is contained in:
commit
34b5d979ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue