Ticket #1151: xinha_fix_action.patch

File xinha_fix_action.patch, 1.0 KB (added by guest, 12 years ago)
  • xinha/XinhaCore.js

    old new  
    50195019    var baseRe = null; 
    50205020    if ( typeof this.config.baseHref != 'undefined' && this.config.baseHref !== null ) 
    50215021    { 
    5022       baseRe = new RegExp( "((href|src|background)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/([^\/]\/)(?=.+\.)[^\/]*$/, "$1")) + ")", 'g' ); 
     5022      baseRe = new RegExp( "((href|src|background|action)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/([^\/]\/)(?=.+\.)[^\/]*$/, "$1")) + ")", 'g' ); 
    50235023    } 
    50245024    else 
    50255025    { 
    5026       baseRe = new RegExp( "((href|src|background)=\")(" +  Xinha.escapeStringForRegExp(document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' )) + ")", 'g' ); 
     5026      baseRe = new RegExp( "((href|src|background|action)=\")(" +  Xinha.escapeStringForRegExp(document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' )) + ")", 'g' ); 
    50275027    } 
    50285028 
    50295029    html = html.replace(baseRe, '$1');