mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 18:00:12 +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) {
|
private function highlight_search_terms($s = '', $terms = '', $html = 0) {
|
||||||
$fields = array("from:", "to:", "subject:", "body:");
|
$fields = array("from:", "to:", "subject:", "body:");
|
||||||
|
|
||||||
$terms = preg_replace("/(\'|\"|\=|\>|\<)/", "", $terms);
|
$terms = preg_replace("/[^\w\s]/", "", $terms);
|
||||||
|
|
||||||
$a = explode(" ", $terms);
|
$a = explode(" ", $terms);
|
||||||
$terms = array();
|
$terms = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user