Changeset 685


Ignore:
Timestamp:
01/22/07 13:22:28 (8 years ago)
Author:
ray
Message:

Ticket #556 stripBaseHref

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r683 r685  
    42354235    else 
    42364236    { 
    4237       baseRe = new RegExp( "((href|src|background)=\")(" + document.location.href.replace( /([^\/]*\/?)$/, '' ).replace( Xinha.RE_Specials, '\\$1' ) + ")", 'g' ); 
     4237      baseRe = new RegExp( "((href|src|background)=\")(" + document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' ).replace( Xinha.RE_Specials, '\\$1' ) + ")", 'g' ); 
    42384238    } 
    42394239 
Note: See TracChangeset for help on using the changeset viewer.