gui: make content-type lowercase

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-08-27 16:32:06 +02:00
parent 5b246d5447
commit 896b4b2b57

View File

@ -302,6 +302,8 @@ class ModelSearchMessage extends Model {
$mime['content-type']['type'] = 'text/plain'; $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'))) 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']); $this->extract_textuals_from_mime_parts($mime_parts[$i]['header'], $mime_parts[$i]['body'], $mime['content-type']['boundary']);