Merge remote-tracking branch 'origin/2.1' into 2

This commit is contained in:
Damian Mooyman 2017-12-07 16:18:39 +13:00
commit 0e6aa26f55
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -300,6 +300,8 @@ class SQLite3Database extends Database
$alternativeFileFilter = "",
$invertedMatch = false
) {
$start = (int)$start;
$pageLength = (int)$pageLength;
$keywords = $this->escapeString(str_replace(array('*', '+', '-', '"', '\''), '', $keywords));
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
@ -326,7 +328,7 @@ class SQLite3Database extends Database
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
}
$limit = $start . ", " . (int) $pageLength;
$limit = $start . ", " . $pageLength;
$notMatch = $invertedMatch ? "NOT " : "";
if ($keywords) {