From: lkehresman Date: Thu, 3 Aug 2000 14:24:32 +0000 (+0000) Subject: fixed some more quoting problems with searching and message highlighting X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d059be8f70e972558bf3005e8d1d0c7bd8c1cf96;p=squirrelmail.git fixed some more quoting problems with searching and message highlighting git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@672 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index d83111f7..0b67db0c 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -27,15 +27,17 @@ if ($mailbox == $sent_folder) { $italic = ""; $italic_end = ""; } for ($i=0; $i < count($message_highlight_list); $i++) { - if ($message_highlight_list[$i]["match_type"] == "to_cc") { - if (strpos("^^".$msg["TO"], strtolower($message_highlight_list[$i]["value"])) || strpos("^^".$msg["CC"], strtolower($message_highlight_list[$i]["value"]))) { + if (trim($message_highlight_list[$i]["value"]) != "") { + if ($message_highlight_list[$i]["match_type"] == "to_cc") { + if (strpos("^^".$msg["TO"], $message_highlight_list[$i]["value"]) || strpos("^^".$msg["CC"], $message_highlight_list[$i]["value"])) { + $hlt_color = $message_highlight_list[$i]["color"]; + continue; + } + } else if (strpos("^^".$msg[strtoupper($message_highlight_list[$i]["match_type"])],$message_highlight_list[$i]["value"])) { $hlt_color = $message_highlight_list[$i]["color"]; continue; - } - } else if (strpos("^^".strtolower($msg[strtoupper($message_highlight_list[$i]["match_type"])]),$message_highlight_list[$i]["value"])) { - $hlt_color = $message_highlight_list[$i]["color"]; - continue; - } + } + } } if (!$hlt_color)