]> source.dussan.org Git - nextcloud-server.git/commitdiff
use getGetUnjailedRoot to determine if jailed search needs the path filter 28566/head
authorRobin Appelman <robin@icewind.nl>
Mon, 23 Aug 2021 14:27:53 +0000 (16:27 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 23 Aug 2021 14:27:53 +0000 (16:27 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Cache/Wrapper/CacheJail.php

index 2dff76333ad7245c33abd79f94188a624a2d4ce9..d0fb43c10be7d3564f0b9527c79fd8a8584e1887 100644 (file)
@@ -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(),