]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some comparisons were incorrect (text/html;charset=utf-8 etc.)
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 23:38:31 +0000 (01:38 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 23:38:31 +0000 (01:38 +0200)
lib/attachmentlistitem.php

index 133756147c39138cbfc2cf1dab67388cbffbf42f..934c5f74dd2cbe9ff972ec9d0ffe21800a9bac30 100644 (file)
@@ -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;