Changeset 4633 in subversion
- Timestamp:
- Apr 8, 2011 2:18:11 AM (2 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r4628 r4633 2 2 =========================== 3 3 4 - Fix bug where default_charset was not used for text messages (#1487836) 4 5 - Enable TinyMCE's contextmenu (#1487014) 5 6 - TinyMCE 3.4.1 -
trunk/roundcubemail/program/include/rcube_imap.php
r4591 r4633 2427 2427 * @param mixed $print True to print part, ressource to write part contents in 2428 2428 * @param resource $fp File pointer to save the message part 2429 * @param boolean $skip_charset_conv Disables charset conversion 2430 * 2429 2431 * @return string Message/part body if not printed 2430 2432 */ 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) 2432 2434 { 2433 2435 // get part encoding if not provided … … 2459 2461 } 2460 2462 2461 // convert charset (if text or message part) and part's charset is specified2462 if ($body && $o_part->charset2463 &&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) 2464 2466 ) { 2467 if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') { 2468 $o_part->charset = $this->default_charset; 2469 } 2465 2470 $body = rcube_charset_convert($body, $o_part->charset); 2466 2471 }
Note: See TracChangeset
for help on using the changeset viewer.
