aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_mysql.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-02-28 18:15:38 +0000
committerNils Adermann <naderman@naderman.de>2006-02-28 18:15:38 +0000
commit0e8e0b65046b182a2ece142167cdbb12104ccb11 (patch)
tree83962aa0fe331365cbddedc57d24b5489c9ff1f6 /phpBB/includes/search/fulltext_mysql.php
parent073f4824ac344dbd7cdbb2a949866a1ecef39a9d (diff)
downloadforums-0e8e0b65046b182a2ece142167cdbb12104ccb11.tar
forums-0e8e0b65046b182a2ece142167cdbb12104ccb11.tar.gz
forums-0e8e0b65046b182a2ece142167cdbb12104ccb11.tar.bz2
forums-0e8e0b65046b182a2ece142167cdbb12104ccb11.tar.xz
forums-0e8e0b65046b182a2ece142167cdbb12104ccb11.zip
CVS commit mail test
git-svn-id: file:///svn/phpbb/trunk@5593 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 7ad156a60d..795772d626 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -133,7 +133,6 @@ class fulltext_mysql extends search_backend
if (sizeof($this->ignore_words))
{
- $stopped_words = array_intersect($text, $this->ignore_words);
$text = array_diff($text, $this->ignore_words);
}
@@ -295,7 +294,7 @@ class fulltext_mysql extends search_backend
$any_words = (sizeof($any_words)) ? ' +(' . implode(' ', $any_words) . ')' : '';
$sql = "SELECT $sql_select
FROM $sql_from$sql_sort_table" . POSTS_TABLE . " p
- WHERE MATCH ($sql_match) AGAINST ('" . implode(' ', $words) . $any_words . "' IN BOOLEAN MODE)
+ WHERE MATCH ($sql_match) AGAINST ('" . $db->sql_escape(implode(' ', $words)) . $any_words . "' IN BOOLEAN MODE)
$sql_where_options
ORDER BY $sql_sort";
$result = $db->sql_query_limit($sql, $config['search_block_size'], $start);