Changeset 5253 in subversion
- Timestamp:
- Sep 20, 2011 2:30:27 PM (20 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/include/rcube_imap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.php
r5244 r5253 2391 2391 } 2392 2392 2393 // Remove NULL characters (#1486189)2394 $body = str_replace("\x00", '', $body);2395 2396 2393 // convert charset (if text or message part) 2397 if ($body && !$skip_charset_conv && 2398 preg_match('/^(text|message)$/', $o_part->ctype_primary) 2399 ) { 2400 if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') { 2401 $o_part->charset = $this->default_charset; 2402 } 2403 $body = rcube_charset_convert($body, $o_part->charset); 2394 if ($body && preg_match('/^(text|message)$/', $o_part->ctype_primary)) { 2395 // Remove NULL characters (#1486189) 2396 $body = str_replace("\x00", '', $body); 2397 2398 if (!$skip_charset_conv) { 2399 if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') { 2400 $o_part->charset = $this->default_charset; 2401 } 2402 $body = rcube_charset_convert($body, $o_part->charset); 2403 } 2404 2404 } 2405 2405
Note: See TracChangeset
for help on using the changeset viewer.
