Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.0' into 2.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	code/SQLite3Database.php
#	code/SQLiteDatabaseConfigurationHelper.php
  • Loading branch information
Damian Mooyman committed Dec 7, 2017
2 parents dbf1048 + e8f4e55 commit 9b00630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/SQLite3Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ public function searchEngine(
$alternativeFileFilter = "",
$invertedMatch = false
) {
$start = (int)$start;
$pageLength = (int)$pageLength;
$keywords = $this->escapeString(str_replace(array('*', '+', '-', '"', '\''), '', $keywords));
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));

Expand All @@ -326,7 +328,7 @@ public function searchEngine(
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
}

$limit = $start . ", " . (int) $pageLength;
$limit = $start . ", " . $pageLength;

$notMatch = $invertedMatch ? "NOT " : "";
if ($keywords) {
Expand Down

0 comments on commit 9b00630

Please sign in to comment.