Changeset 7686


Ignore:
Timestamp:
12/20/12 18:09:47 (7 years ago)
Author:
cristiano
Message:

Ticket #3209 - Erro de codificação em emails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zpush/backend/expresso/providers/imapProvider.php

    r7671 r7686  
    10271027            $message = $mobj->decode(array('decode_headers' => true, 'decode_bodies' => true, 'include_bodies' => true, 'charset' => 'utf-8')); 
    10281028 
     1029 
     1030 
     1031 
    10291032            /* BEGIN fmbiete's contribution r1528, ZP-320 */ 
    10301033            $output = new SyncMail(); 
     
    15981601    protected function getBodyRecursive($message, $subtype, &$body) { 
    15991602        if(!isset($message->ctype_primary)) return; 
    1600         if(strcasecmp($message->ctype_primary,"text")==0 && strcasecmp($message->ctype_secondary,$subtype)==0 && isset($message->body)) 
    1601             $body .= $message->body; 
     1603        if(strcasecmp($message->ctype_primary,"text")==0 && strcasecmp($message->ctype_secondary,$subtype)==0 && isset($message->body)){ 
     1604          $body .= (strtolower($message->ctype_parameters['charset']) == 'iso-8859-1' ) ? mb_convert_encoding($message->body, "UTF-8","ISO-8859-1,UTF-8") : $message->body; 
     1605         } 
    16021606 
    16031607        if(strcasecmp($message->ctype_primary,"multipart")==0 && isset($message->parts) && is_array($message->parts)) { 
Note: See TracChangeset for help on using the changeset viewer.