Changeset 2154 in subversion


Ignore:
Timestamp:
Dec 16, 2008 7:37:05 AM (6 years ago)
Author:
alec
Message:

#1485607: fix charset setting for attachments when sending the message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/Mail/mimePart.php

    r2043 r2154  
    186186        if (isset($contentType['type'])) { 
    187187            $headers['Content-Type'] = $contentType['type']; 
     188            if (isset($contentType['charset'])) { 
     189                $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\""; 
     190            } 
    188191            if (isset($contentType['name'])) { 
    189192                $headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF; 
     
    193196                        isset($contentType['language']) ? $contentType['language'] : NULL, 
    194197                        isset($params['name-encoding']) ?  $params['name-encoding'] : NULL); 
    195             } elseif (isset($contentType['charset'])) { 
    196                 $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\""; 
    197198            } 
    198199        } 
Note: See TracChangeset for help on using the changeset viewer.