Changeset 5253 in subversion


Ignore:
Timestamp:
Sep 20, 2011 2:30:27 PM (20 months ago)
Author:
alec
Message:
  • Fix forwarded attachments, broken in r5204
File:
1 edited

Legend:

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

    r5244 r5253  
    23912391        } 
    23922392 
    2393         // Remove NULL characters (#1486189) 
    2394         $body = str_replace("\x00", '', $body); 
    2395  
    23962393        // 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            } 
    24042404        } 
    24052405 
Note: See TracChangeset for help on using the changeset viewer.