Changeset 933


Ignore:
Timestamp:
01/13/08 22:40:33 (6 years ago)
Author:
ray
Message:

#1126 Percent (%) in URL prevent stripSelfNamedAnchors from working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r931 r933  
    50195019  if ( typeof this.config.stripSelfNamedAnchors != 'undefined' && this.config.stripSelfNamedAnchors ) 
    50205020  { 
    5021     var stripRe = new RegExp("((href|src|background)=\")("+Xinha.escapeStringForRegExp(document.location.href.replace(/&/g,'&')) + ')([#?][^\'" ]*)', 'g'); 
     5021    var stripRe = new RegExp("((href|src|background)=\")("+Xinha.escapeStringForRegExp(unescape(document.location.href.replace(/&/g,'&'))) + ')([#?][^\'" ]*)', 'g'); 
    50225022    html = html.replace(stripRe, '$1$4'); 
    50235023  } 
Note: See TracChangeset for help on using the changeset viewer.