Skip to content

Commit

Permalink
Limit the highlight (#42921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored Mar 4, 2024
1 parent 15eaa43 commit f8c67be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/highlight/src/Extension/Highlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function onFinderResult($item, $query)
&& 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)));
}
}
}

0 comments on commit f8c67be

Please sign in to comment.