Changeset 5114


Ignore:
Timestamp:
10/14/11 16:39:40 (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

    r5108 r5114  
    10571057                data.is_local_message = (document.getElementById("is_local_"+border_ID).value=="1")?true:false; 
    10581058 
    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] ); 
     1059        if( data.subject ) 
     1060        { 
     1061                // HtmlEntities Subject 
     1062                var htmlEntities = [ ["&lt;","<"], ["&gt;",">"], ["&amp;","&"], ["&nbsp;"," "], ["&nbsp;"," "], ["&quot;","\""] ]; 
     1063 
     1064                for( var i in htmlEntities ) 
     1065                { 
     1066                        if( data.subject.indexOf(htmlEntities[i][0]) > -1 ) 
     1067                        { 
     1068                                data.subject = replaceAll( data.subject.toString(),htmlEntities[i][0],htmlEntities[i][1] ); 
     1069                        } 
     1070                } 
     1071        } 
    10721072         
    10731073        switch(type){ 
Note: See TracChangeset for help on using the changeset viewer.