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
@ -872,8 +872,8 @@ class SQLite3Database extends SS_Database {
|
||||
* @return object DataObjectSet of result pages
|
||||
*/
|
||||
public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $sortBy = "Relevance DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false) {
|
||||
$fileFilter = '';
|
||||
$keywords = Convert::raw2sql(str_replace(array('*','+','-'),'',$keywords));
|
||||
$fileFilter = '';
|
||||
$keywords = Convert::raw2sql(str_replace(array('*','+','-','"','\''),'',$keywords));
|
||||
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
|
||||
|
||||
$extraFilters = array('SiteTree' => '', 'File' => '');
|
||||
|
Loading…
Reference in New Issue
Block a user