From e52275e37f8c1593ef2214fcdf40bdc226f8758b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 21 Jul 2016 01:38:31 +0200 Subject: [PATCH] Some comparisons were incorrect (text/html;charset=utf-8 etc.) --- lib/attachmentlistitem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index 133756147c..934c5f74dd 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -174,7 +174,7 @@ class AttachmentListItem extends Widget default: unset($thumb); // there's no need carrying this along - switch ($this->attachment->mimetype) { + switch (common_bare_mime($this->attachment->mimetype)) { case 'text/plain': $this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath())); break; -- 2.39.5