mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR: fixed quoting for searcform()
This commit is contained in:
parent
d989c15a2a
commit
36acc3deec
@ -873,7 +873,7 @@ class SQLite3Database extends SS_Database {
|
||||
*/
|
||||
public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $sortBy = "Relevance DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false) {
|
||||
$fileFilter = '';
|
||||
$keywords = Convert::raw2sql(str_replace(array('*','+','-'),'',$keywords));
|
||||
$keywords = Convert::raw2sql(str_replace(array('*','+','-','"','\''),'',$keywords));
|
||||
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
|
||||
|
||||
$extraFilters = array('SiteTree' => '', 'File' => '');
|
||||
|
Loading…
Reference in New Issue
Block a user