From 8e72037e67f67076c87089a29948821cb6a5077e Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 23 Dec 2006 19:06:53 +0000 Subject: [PATCH] #6414 git-svn-id: file:///svn/phpbb/trunk@6800 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/fulltext_native.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php index 10c53d78cd..4ad0f8ae41 100755 --- a/phpBB/includes/search/fulltext_native.php +++ b/phpBB/includes/search/fulltext_native.php @@ -953,10 +953,9 @@ class fulltext_native extends search_backend */ $word = strtok($this->cleanup(preg_replace($match, ' ', strip_tags($text)), -1), ' '); - while (isset($word[0])) + while (strlen($word)) { - if (isset($word[255]) - || !isset($word[$isset_min])) + if (strlen($word) > 255 || strlen($word) <= $isset_min) { /** * Words longer than 255 bytes are ignored. This will have to be