mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
highlight fix
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user