Changeset 4710
- Timestamp:
- 07/14/11 01:28:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.attachment.inc.php
r4436 r4710 282 282 else 283 283 { 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']) 285 292 { 286 293 $definition['pid'] = $pIndex.'.'.$index;
Note: See TracChangeset
for help on using the changeset viewer.