Changeset 4633 in subversion


Ignore:
Timestamp:
Apr 8, 2011 2:18:11 AM (2 years ago)
Author:
alec
Message:
  • Fix bug where default_charset was not used for text messages (#1487836)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4628 r4633  
    22=========================== 
    33 
     4- Fix bug where default_charset was not used for text messages (#1487836) 
    45- Enable TinyMCE's contextmenu (#1487014) 
    56- TinyMCE 3.4.1 
  • trunk/roundcubemail/program/include/rcube_imap.php

    r4591 r4633  
    24272427     * @param  mixed              $print  True to print part, ressource to write part contents in 
    24282428     * @param  resource           $fp     File pointer to save the message part 
     2429     * @param  boolean            $skip_charset_conv Disables charset conversion 
     2430     * 
    24292431     * @return string Message/part body if not printed 
    24302432     */ 
    2431     function &get_message_part($uid, $part=1, $o_part=NULL, $print=NULL, $fp=NULL) 
     2433    function &get_message_part($uid, $part=1, $o_part=NULL, $print=NULL, $fp=NULL, $skip_charset_conv=false) 
    24322434    { 
    24332435        // get part encoding if not provided 
     
    24592461        } 
    24602462 
    2461         // convert charset (if text or message part) and part's charset is specified 
    2462         if ($body && $o_part->charset 
    2463             && preg_match('/^(text|message)$/', $o_part->ctype_primary) 
     2463        // convert charset (if text or message part) 
     2464        if ($body && !$skip_charset_conv && 
     2465            preg_match('/^(text|message)$/', $o_part->ctype_primary) 
    24642466        ) { 
     2467            if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') { 
     2468                $o_part->charset = $this->default_charset; 
     2469            } 
    24652470            $body = rcube_charset_convert($body, $o_part->charset); 
    24662471        } 
Note: See TracChangeset for help on using the changeset viewer.