git-svn-id: file:///svn/phpbb/trunk@6800 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-12-23 19:06:53 +00:00
parent c4a7d13055
commit 8e72037e67

View file

@ -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