Changeset 7698


Ignore:
Timestamp:
01/02/13 11:00:10 (7 years ago)
Author:
cristiano
Message:

Ticket #3209 - Codificação de emails com problema

File:
1 edited

Legend:

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

    r7686 r7698  
    16021602        if(!isset($message->ctype_primary)) return; 
    16031603        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; 
     1604 
     1605            if(strtolower($message->ctype_parameters['charset']) == 'iso-8859-1') 
     1606            { 
     1607                $body .=  mb_detect_encoding($message->body) == 'UTF-8' ? $message->body : mb_convert_encoding($message->body , 'ISO-8859-1'); 
     1608            } 
     1609            else 
     1610            { 
     1611                $body .= $message->body; 
     1612            } 
    16051613         } 
    16061614 
Note: See TracChangeset for help on using the changeset viewer.