From d0ef91ea72c7317aad6419d5bc215a1dfbc3d1bd Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 3 Jul 2013 10:20:29 +0200 Subject: [PATCH] fixed a html encode problem --- webui/model/search/message.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 6c802877..0cd5cd09 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -371,11 +371,15 @@ class ModelSearchMessage extends Model { private function highlight_search_terms($s = '', $terms = array()) { + $terms = preg_replace("/(\'|\")/", "", $terms); + $terms = explode(" ", $terms); if(count($terms) <= 0) { return $s; } while(list($k, $v) = each($terms)) { + if($v == '') { continue; } + $s = preg_replace("/$v/i", "$v", $s); }