From f219fb4edf2f0f94c07dab273e5871d1cadc3edf Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 28 Nov 2012 14:30:58 +0100 Subject: [PATCH] fixed a character decoding issue in the web ui --- webui/model/search/message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index d4f3daed..fd129614 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -155,8 +155,8 @@ class ModelSearchMessage extends Model { } if($state == "CONTENT_TRANSFER_ENCODING"){ - if(strstr($l, "quoted-printable")){ $qp = 1; } - if(strstr($l, "base64")){ $base64 = 1; } + if(preg_match("/quoted-printable/i", $l)){ $qp = 1; } + if(preg_match("/base64/i", $l)){ $base64 = 1; } }