Changeset 1395 for trunk


Ignore:
Timestamp:
02/10/18 08:05:23 (17 months ago)
Author:
gogo
Message:

#1421 - in TransformInnerHTML with 7 bit printables in urls, do not remove % encoding which already exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/TransformInnerHTML.js

    r1344 r1395  
    9595                if ( c[13].test(sHtml)) { 
    9696                        try { //Mozilla returns an incorrectly encoded value with innerHTML 
    97                           sHtml = sHtml.replace(c[13], '$1'+Xinha._escapeDollars(decodeURIComponent(RegExp.$3).replace(/([^!-~]+)/g, function(chr)  
     97                          sHtml = sHtml.replace(c[13], '$1'+Xinha._escapeDollars(decodeURIComponent(RegExp.$3).replace(/([^!-~]+|%[0-9]+)/g, function(chr)  
    9898                                                                                                                       {return escape(chr);}))+'"'); 
    9999                        } catch (e) { // once the URL is escape()ed, you can't decodeURIComponent() it anymore 
    100                           sHtml = sHtml.replace(c[13], '$1'+Xinha._escapeDollars(RegExp.$3.replace(/([^!-~]+)/g,function(chr){return escape(chr);})+'"')); 
     100                          sHtml = sHtml.replace(c[13], '$1'+Xinha._escapeDollars(RegExp.$3.replace(/([^!-~]+|%[0-9]+)/g,function(chr){return escape(chr);})+'"')); 
    101101                        } 
    102102                } 
Note: See TracChangeset for help on using the changeset viewer.