Changeset 4486 in subversion


Ignore:
Timestamp:
Feb 3, 2011 9:35:52 AM (2 years ago)
Author:
alec
Message:
  • Convert Content-type to lowercase, fixes lack of attachment icon for some messages (#1487750)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r4479 r4486  
    16321632                        case 'content-type': 
    16331633                            $ctype_parts = preg_split('/[; ]/', $string); 
    1634                             $result[$id]->ctype = array_shift($ctype_parts); 
     1634                            $result[$id]->ctype = strtolower(array_shift($ctype_parts)); 
    16351635                            if (preg_match('/charset\s*=\s*"?([a-z0-9\-\.\_]+)"?/i', $string, $regs)) { 
    16361636                                $result[$id]->charset = $regs[1]; 
Note: See TracChangeset for help on using the changeset viewer.