mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 05:11:59 +01:00
highlight fix
This commit is contained in:
parent
561b75230e
commit
b83a0ed4dc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user