Changeset 5108


Ignore:
Timestamp:
10/03/11 17:06:28 (12 years ago)
Author:
alexandrecorreia
Message:

Ticket #2285 - Corrigido HTMLSpecialChars no assunto viram HTMLEntities ao responder mensagem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/main.js

    r4639 r5108  
    10561056        if(type!="new" && type!="edit") 
    10571057                data.is_local_message = (document.getElementById("is_local_"+border_ID).value=="1")?true:false; 
     1058 
     1059        // HtmlEntities Subject 
     1060        var htmlEntities = [ 
     1061                                ["&lt;","<"], 
     1062                                ["&gt;",">"], 
     1063                                ["&amp;","&"], 
     1064                                ["&nbsp;"," "], 
     1065                                ["&nbsp;"," "], 
     1066                                ["&quot;","\""] 
     1067                            ]; 
     1068         
     1069        for( var i in htmlEntities ) 
     1070                if( data.subject.indexOf(htmlEntities[i][0]) > -1 ) 
     1071                        data.subject = replaceAll( data.subject.toString(),htmlEntities[i][0],htmlEntities[i][1] ); 
     1072         
    10581073        switch(type){ 
    10591074                case "reply_without_history": 
Note: See TracChangeset for help on using the changeset viewer.