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

# Conflicts:
#	code/SQLite3Database.php
#	code/SQLiteDatabaseConfigurationHelper.php
This commit is contained in:
Damian Mooyman 2017-12-07 16:18:19 +13:00
commit 9b00630616
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
1 changed files with 3 additions and 1 deletions

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) {