MINOR: fixed quoting for searcform()

This commit is contained in:
Andreas Piening 2010-07-26 01:04:38 +00:00
parent d989c15a2a
commit 36acc3deec

View File

@ -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' => '');