Changeset 4710


Ignore:
Timestamp:
07/14/11 01:28:02 (13 years ago)
Author:
airton
Message:

Ticket #2110 - Falha no calculo do tamanho de anexos de algumas mensagens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.attachment.inc.php

    r4436 r4710  
    282282                    else 
    283283                    { 
    284                         if($part->d_parameters['filename']) 
     284                        if(!$part->headers['content-transfer-encoding']) //Caso não esteja especificado a codificação  
     285                                    $part->headers['content-transfer-encoding'] = mb_detect_encoding ($part->body,array('BASE64','Quoted-Printable','7bit','8bit','ASCII'));  
     286                                if($part->headers['content-transfer-encoding'] === FALSE) //Caso a tentativa de achar a codificação retorne FALSE  
     287                                                        $part->headers['content-transfer-encoding'] = 'binary';  
     288                                                if($part->headers['content-transfer-encoding'] === 'ASCII') //Caso a codificação retorne ascii especifica como base64  
     289                                                        $part->headers['content-transfer-encoding'] = 'base64'; 
     290                                                 
     291                                                if($part->d_parameters['filename']) 
    285292                        { 
    286293                            $definition['pid'] = $pIndex.'.'.$index; 
Note: See TracChangeset for help on using the changeset viewer.