From 896b4b2b570d52f8030440739a1982280f902587 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 27 Aug 2017 16:32:06 +0200 Subject: [PATCH] gui: make content-type lowercase Signed-off-by: Janos SUTO --- webui/model/search/message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index f3de7474..38bd2b7d 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -302,6 +302,8 @@ class ModelSearchMessage extends Model { $mime['content-type']['type'] = 'text/plain'; } + $mime['content-type']['type'] = strtolower($mime['content-type']['type']); + if(in_array($mime['content-type']['type'], array('multipart/mixed', 'multipart/related', 'multipart/alternative'))) $this->extract_textuals_from_mime_parts($mime_parts[$i]['header'], $mime_parts[$i]['body'], $mime['content-type']['boundary']);