From: Mikael Nordfeldth Date: Wed, 20 Jul 2016 23:38:31 +0000 (+0200) Subject: Some comparisons were incorrect (text/html;charset=utf-8 etc.) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e52275e37f8c1593ef2214fcdf40bdc226f8758b;p=quix0rs-gnu-social.git Some comparisons were incorrect (text/html;charset=utf-8 etc.) --- 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;