Changeset 5177 for trunk


Ignore:
Timestamp:
11/14/11 15:53:17 (12 years ago)
Author:
clairson
Message:

Ticket #2317 - Erro ao encaminhar uma mensagem com anexo de pasta com acentuacao (anexo chega com 0 kb)

File:
1 edited

Legend:

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

    r5176 r5177  
    30843084                        { 
    30853085                                $file_description = unserialize(rawurldecode($forwarding_attachment)); 
     3086                                 
     3087                                foreach($file_description as $i => $item) 
     3088                                        $file_description[$i] = urldecode($item); 
     3089                                 
    30863090                                $tmp = array_values($file_description); 
    30873091                                foreach($file_description as $i => $descriptor){ 
     
    37883792                $body = preg_replace("/\n/"," ",$body); 
    37893793                $body = preg_replace("/\r/","" ,$body); 
    3790                 $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' ); 
     3794                $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' );                                         
    37913795                $forwarding_attachments = $params['forwarding_attachments']; 
    37923796                $message_attachments    = $params['message_attachments']; 
     
    38613865                        foreach($forwarding_attachments as $forwarding_attachment) 
    38623866                        { 
     3867 
    38633868                                $file_description = unserialize(rawurldecode($forwarding_attachment)); 
    3864                                                  
    3865                                  
    3866                         $file_description = array_values($file_description);  
     3869                                foreach($file_description as $i => $item) 
     3870                                        $file_description[$i] = urldecode($item);                                
     3871                         
     3872                                $file_description = array_values($file_description);  
    38673873                                         
    38683874                                foreach($file_description as $i => $descriptor) 
Note: See TracChangeset for help on using the changeset viewer.