Skip to content

Commit

Permalink
Merge pull request nextcloud#28583 from nextcloud/backport/28566/stab…
Browse files Browse the repository at this point in the history
…le22

[stable22] use getGetUnjailedRoot to determine if jailed search needs the path filter
  • Loading branch information
LukasReschke authored Aug 25, 2021
2 parents 2a928d4 + 9e5440a commit 34b5d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Wrapper/CacheJail.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public function moveFromCache(\OCP\Files\Cache\ICache $sourceCache, $sourcePath,
}

public function getQueryFilterForStorage(): ISearchOperator {
if ($this->root !== '' && $this->root !== '/') {
if ($this->getGetUnjailedRoot() !== '' && $this->getGetUnjailedRoot() !== '/') {
return new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_AND,
[
$this->getCache()->getQueryFilterForStorage(),
Expand Down

0 comments on commit 34b5d97

Please sign in to comment.