aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-27 19:32:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-27 19:32:18 +0000
commit1f118ba2ae02dd1bf3ff1d3be06245b03a561180 (patch)
tree65673c5298fa58f5f3881cde7d357f8171ca6692 /phpBB/includes/search
parent8e297a038c6dfed7ca892d8799cfbdb010cc0911 (diff)
downloadforums-1f118ba2ae02dd1bf3ff1d3be06245b03a561180.tar
forums-1f118ba2ae02dd1bf3ff1d3be06245b03a561180.tar.gz
forums-1f118ba2ae02dd1bf3ff1d3be06245b03a561180.tar.bz2
forums-1f118ba2ae02dd1bf3ff1d3be06245b03a561180.tar.xz
forums-1f118ba2ae02dd1bf3ff1d3be06245b03a561180.zip
#5610
git-svn-id: file:///svn/phpbb/trunk@6674 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php2
-rwxr-xr-xphpBB/includes/search/fulltext_native.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 09e9162d83..8a102a321d 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -116,7 +116,7 @@ class fulltext_mysql extends search_backend
if ($terms == 'all')
{
- $match = array('#\sand\s#i', '#\sor\s#i', '#\snot\s#i', '#\+#', '#-#', '#\|#');
+ $match = array('#\sand\s#iu', '#\sor\s#iu', '#\snot\s#iu', '#\+#', '#-#', '#\|#');
$replace = array(' +', ' |', ' -', ' +', ' -', ' |');
$keywords = preg_replace($match, $replace, $keywords);
diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php
index 07ebfc6047..df000f5e04 100755
--- a/phpBB/includes/search/fulltext_native.php
+++ b/phpBB/includes/search/fulltext_native.php
@@ -173,7 +173,7 @@ class fulltext_native extends search_backend
{
$words = array();
- preg_match_all('#([^\\s+\\-|()]+)(?:$|[\\s+\\-|()])#', $keywords, $words);
+ preg_match_all('#([^\\s+\\-|()]+)(?:$|[\\s+\\-|()])#u', $keywords, $words);
if (sizeof($words[1]))
{
$keywords = '(' . implode('|', $words[1]) . ')';
@@ -184,7 +184,7 @@ class fulltext_native extends search_backend
$this->search_query = $keywords;
$exact_words = array();
- preg_match_all('#([^\\s+\\-|*()]+)(?:$|[\\s+\\-|()])#', $keywords, $exact_words);
+ preg_match_all('#([^\\s+\\-|*()]+)(?:$|[\\s+\\-|()])#u', $keywords, $exact_words);
$exact_words = $exact_words[1];
if (sizeof($exact_words))