aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/fulltext.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index d2e579544..fda2b0e5b 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -845,7 +845,7 @@ function ft_queryParser($Indexer, $query){
$q['parsed_ary'] = $parsed_ary;
foreach ($q['parsed_ary'] as $token) {
- if ($token[2] !== ':') continue;
+ if (strlen($token) < 3 || $token[2] !== ':') continue;
$body = substr($token, 3);
switch (substr($token, 0, 3)) {