Changeset 4595 for branches


Ignore:
Timestamp:
06/10/11 18:28:41 (13 years ago)
Author:
brunocosta
Message:

Ticket #2004 - foram modificados os headers passados para o user agent no download de anexos para arquivamento.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/inc/gotodownload.php

    r3369 r4595  
    162162                header("Expires: 0"); // set expiration time 
    163163                header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\""); 
    164                 if($fileContent) { 
     164                // No IE para que os nomes de arquivos com caracteres especiais no download fiquei corretos o nome deve ser codificado com urlencode. 
     165                 if (preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT'])) 
     166                        $newFileName=urlencode($newFileName); 
     167                if($fileContent) { 
    165168                        if($encoding == 'base64') 
    166169                                echo imap_base64($fileContent); 
Note: See TracChangeset for help on using the changeset viewer.