aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-23 19:06:53 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-23 19:06:53 +0000
commit8e72037e67f67076c87089a29948821cb6a5077e (patch)
treeec8061fc7fd9c9095564f4d1b3bc022f8d090b03 /phpBB/includes/search
parentc4a7d130556f4422a95ebd5f8214d94f1a1325b1 (diff)
downloadforums-8e72037e67f67076c87089a29948821cb6a5077e.tar
forums-8e72037e67f67076c87089a29948821cb6a5077e.tar.gz
forums-8e72037e67f67076c87089a29948821cb6a5077e.tar.bz2
forums-8e72037e67f67076c87089a29948821cb6a5077e.tar.xz
forums-8e72037e67f67076c87089a29948821cb6a5077e.zip
#6414
git-svn-id: file:///svn/phpbb/trunk@6800 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search')
-rwxr-xr-xphpBB/includes/search/fulltext_native.php5
1 files 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