aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Files
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-02-07 09:35:55 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-07 13:41:15 +0100
commitc1ff12e2340a6a1ea2a9032848778af7085ff150 (patch)
tree55f985d096d3c00be04da5ad7bfe9f242a2d21dd /apps/dav/lib/Files
parent6b5419ddf09aaa8fcbd2e9e31ec8e445d7da19b6 (diff)
downloadnextcloud-server-c1ff12e2340a6a1ea2a9032848778af7085ff150.tar.gz
nextcloud-server-c1ff12e2340a6a1ea2a9032848778af7085ff150.zip
CacheJail should apply limit and offset after searching
Else the results might not be correct. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Files')
-rw-r--r--apps/dav/lib/Files/FileSearchBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Files/FileSearchBackend.php b/apps/dav/lib/Files/FileSearchBackend.php
index 965176ddd02..275d3dc8a42 100644
--- a/apps/dav/lib/Files/FileSearchBackend.php
+++ b/apps/dav/lib/Files/FileSearchBackend.php
@@ -271,7 +271,7 @@ class FileSearchBackend implements ISearchBackend {
// TODO offset
$limit = $query->limit;
$orders = array_map([$this, 'mapSearchOrder'], $query->orderBy);
- return new SearchQuery($this->transformSearchOperation($query->where), $limit->maxResults, 0, $orders, $this->user);
+ return new SearchQuery($this->transformSearchOperation($query->where), (int)$limit->maxResults, 0, $orders, $this->user);
}
/**