Changeset 7145


Ignore:
Timestamp:
09/03/12 10:11:03 (12 years ago)
Author:
gustavo
Message:

Ticket #3087 - Inconsistência em pastas que contenham acento em letra maiuscula

Location:
trunk/expressoMail1_2/js
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/common_functions.js

    r6996 r7145  
    249249        div_attachment = document.getElementById("id_div_attachment"); 
    250250        var params = ''; 
    251  
     251        if(msg_folder) 
     252                msg_folder = utf8_decoder(Base64.decode(msg_folder)); 
    252253        if (div_attachment == null){ 
    253254                var div_attachment = document.createElement("DIV"); 
     
    273274                download_attachments(null, null, data, null,null,'anexos.zip'); 
    274275        } 
    275         cExecute("$this.exporteml.download_all_attachments",handler_source,"folder="+msg_folder+"&num_msg="+msg_number); 
     276        cExecute("$this.exporteml.download_all_attachments",handler_source,"folder="+utf8_decoder(msg_folder)+"&num_msg="+msg_number); 
    276277} 
    277278//ADD forwarded files 
  • trunk/expressoMail1_2/js/draw_api.js

    r7135 r7145  
    33533353                        link_attachment.setAttribute("class", "type_images"); 
    33543354                        link_attachment.style.display = "block"; 
    3355                         link_attachment.setAttribute("href", proxy_mensagens.link_anexo(info_msg,i)); 
     3355                        link_attachment.setAttribute("href", proxy_mensagens.link_anexo(info_msg,i));            
    33563356                        link_attachment.innerHTML = url_decode(info_msg.attachments[i].name) + " ("+borkb(info_msg.attachments[i].fsize)+")"; 
    33573357                        //link_attachment.innerHTML += " ("+borkb(info_msg.attachments[i].fsize)+")"; 
     
    36073607                                                                i++; 
    36083608                                                        }else{ 
    3609                                                                 var href = './inc/get_archive.php?msgFolder=' + fdr + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=true';  
     3609                                                                var href = './inc/get_archive.php?msgFolder=' + utf8_decoder(fdr) + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=true';  
    36103610                                                                //var href = thumb.url;  
    3611                                                                 var src  = 'inc/get_archive.php?msgFolder=' + fdr + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=thumbnail';  
     3611                                                                var src  = 'inc/get_archive.php?msgFolder=' + utf8_decoder(fdr) + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=thumbnail';  
    36123612                                } 
    36133613                                var msgid= fdr+";;"+msg+";;"+i+";;"+thumb.pid+";;"+thumb.encoding;  
  • trunk/expressoMail1_2/js/main.js

    r7135 r7145  
    38513851        if(_button == 2 || _button == 3) { 
    38523852                var _params = _target.id.split(";;"); 
    3853                 download_attachments(_params[0],_params[1],_params[2],_params[3],_params[4],file_type); 
     3853                download_attachments(Base64.encode(_params[0]),_params[1],_params[2],_params[3],_params[4],file_type); 
    38543854        } 
    38553855} 
  • trunk/expressoMail1_2/js/messages_controller.js

    r7005 r7145  
    124124                } 
    125125                else { 
    126                         return "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')"; 
     126                        return "javascript:download_attachments('"+Base64.encode(info_msg.msg_folder)+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')"; 
    127127                } 
    128128        } 
Note: See TracChangeset for help on using the changeset viewer.