Changeset 994


Ignore:
Timestamp:
04/15/08 18:11:12 (7 years ago)
Author:
ray
Message:

#1186 strip xinha_config.baseHref AND location.href from paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r992 r994  
    50265026    { 
    50275027      baseRe = new RegExp( "((href|src|background|action)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/([^\/]\/)(?=.+\.)[^\/]*$/, "$1")) + ")", 'g' ); 
     5028          html = html.replace(baseRe, '$1'); 
    50285029    } 
    50295030    baseRe = new RegExp( "((href|src|background|action)=\")(" +  Xinha.escapeStringForRegExp(document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' )) + ")", 'g' ); 
    5030  
    50315031    html = html.replace(baseRe, '$1'); 
    50325032  } 
Note: See TracChangeset for help on using the changeset viewer.