aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-04-22 17:12:31 +0000
committerNils Adermann <naderman@naderman.de>2007-04-22 17:12:31 +0000
commit5742dcd68a674b31b91fc39978aeaf6d74c48ceb (patch)
tree0116689029e3212efa7294568bbd273aabef9bc8 /phpBB/search.php
parent550f270a0027e67a0eb19d99fbe54d6045696a0b (diff)
downloadforums-5742dcd68a674b31b91fc39978aeaf6d74c48ceb.tar
forums-5742dcd68a674b31b91fc39978aeaf6d74c48ceb.tar.gz
forums-5742dcd68a674b31b91fc39978aeaf6d74c48ceb.tar.bz2
forums-5742dcd68a674b31b91fc39978aeaf6d74c48ceb.tar.xz
forums-5742dcd68a674b31b91fc39978aeaf6d74c48ceb.zip
- removed unneeded code from fulltext_mysql [Bug #9947]
- an additional combined index on post_subject and post_text is necessary for fulltext_mysql [Bug #9818] - added phrase searching support to fulltext_mysql while fixing some minor bugs in the keyword processing code, originally intended to do this about a year ago when I switched from split_words array to search_query string in the search backend interface, so finally it's there git-svn-id: file:///svn/phpbb/trunk@7385 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 3bffb00ddd..7ba7035f03 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -453,8 +453,8 @@ if ($keywords || $author || $author_id || $search_id || $submit)
}
// define some vars for urls
- $hilit = implode('|', explode(' ', preg_replace('#\s+#u', ' ', str_replace(array('+', '-', '|', '(', ')'), ' ', $keywords))));
- $u_hilit = urlencode(htmlspecialchars_decode($keywords));
+ $hilit = implode('|', explode(' ', preg_replace('#\s+#u', ' ', str_replace(array('+', '-', '|', '(', ')', '&quot;'), ' ', $keywords))));
+ $u_hilit = urlencode(htmlspecialchars_decode(str_replace('|', ' ', $hilit)));
$u_show_results = ($show_results != 'posts') ? '&amp;sr=' . $show_results : '';
$u_search_forum = implode('&amp;fid%5B%5D=', $search_forum);