highlight fix

This commit is contained in:
SJ 2015-09-15 21:26:39 +02:00
parent 561b75230e
commit b83a0ed4dc

View File

@ -488,7 +488,7 @@ class ModelSearchMessage extends Model {
private function highlight_search_terms($s = '', $terms = '', $html = 0) {
$fields = array("from:", "to:", "subject:", "body:");
$terms = preg_replace("/(\'|\"|\=|\>|\<)/", "", $terms);
$terms = preg_replace("/[^\w\s]/", "", $terms);
$a = explode(" ", $terms);
$terms = array();