aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_mysql.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-07 12:36:31 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-07 12:36:31 +0000
commitf8528a659c919d7bc1e78c5aacc95e27cddec627 (patch)
treebb70865f922867a83fa144f315ad40014a982e2b /phpBB/includes/search/fulltext_mysql.php
parente87f740a9e7a048b7900d92ede04f405a337441c (diff)
downloadforums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar
forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.gz
forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.bz2
forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.xz
forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.zip
tried to begin adjusting all string functions where applicable - still a *lot* to do.
i hope i catched all relevant sections and did not mess something up. git-svn-id: file:///svn/phpbb/trunk@6452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index f4bf0d9eaf..27f98ebcfa 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -153,7 +153,7 @@ class fulltext_mysql extends search_backend
$clean_word = preg_replace('#^[+\-|]#', '', $word);
// check word length
- $clean_len = strlen(str_replace('*', '', $clean_word));
+ $clean_len = utf8_strlen(str_replace('*', '', $clean_word));
if (($clean_len < $config['fulltext_mysql_min_word_len']) || ($clean_len > $config['fulltext_mysql_max_word_len']))
{
$this->common_words[] = $word;
@@ -203,7 +203,7 @@ class fulltext_mysql extends search_backend
for ($i = 0, $n = sizeof($text); $i < $n; $i++)
{
$text[$i] = trim($text[$i]);
- if (strlen($text[$i]) < $config['fulltext_mysql_min_word_len'] || strlen($text[$i]) > $config['fulltext_mysql_max_word_len'])
+ if (utf8_strlen($text[$i]) < $config['fulltext_mysql_min_word_len'] || utf8_strlen($text[$i]) > $config['fulltext_mysql_max_word_len'])
{
unset($text[$i]);
}