mirror of https://github.com/joomla/joomla-cms.git
Limit the highlight (#42921)
This commit is contained in:
parent
15eaa4345b
commit
f8c67be561
|
@ -121,7 +121,7 @@ final class Highlight extends CMSPlugin
|
|||
&& empty($item->mime)
|
||||
&& $params->get('highlight_terms', 1)
|
||||
) {
|
||||
$item->route .= '&highlight=' . base64_encode(json_encode($query->highlight));
|
||||
$item->route .= '&highlight=' . base64_encode(json_encode(array_slice($query->highlight, 0, 10)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue