summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-03 14:35:52 +0000
committeralecpl <alec@alec.pl>2011-02-03 14:35:52 +0000
commit62481f34e612c001bd7c91727787c60ceac579f3 (patch)
tree0dac7de17f70baa398fb1af4cc9f45b127c71d03
parente8d5bdc84ecfdf6fe5008655215a258bbdf0c521 (diff)
- Convert Content-type to lowercase, fixes lack of attachment icon for some messages (#1487750)
-rw-r--r--program/include/rcube_imap_generic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index e8b1fd4b4..41f704d8d 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -1631,7 +1631,7 @@ class rcube_imap_generic
break;
case 'content-type':
$ctype_parts = preg_split('/[; ]/', $string);
- $result[$id]->ctype = array_shift($ctype_parts);
+ $result[$id]->ctype = strtolower(array_shift($ctype_parts));
if (preg_match('/charset\s*=\s*"?([a-z0-9\-\.\_]+)"?/i', $string, $regs)) {
$result[$id]->charset = $regs[1];
}