aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-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