X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fxhr.js;h=c458704eeabaeb78caa1fe615fd7b7c740e10d5d;hb=2e129759b44c022cdee5ce1057a7693d2a081263;hp=66be46362b84a1e8d03b3b2e39ed3ccba3d65c04;hpb=9fa9a570762c2b6dc6131b28b13547964d91be3e;p=jquery.git diff --git a/src/xhr.js b/src/xhr.js index 66be463..c458704 100644 --- a/src/xhr.js +++ b/src/xhr.js @@ -1,6 +1,6 @@ (function( jQuery ) { -var rquery = /\?/, +var rquery_xhr = /\?/, rhash = /#.*$/, rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL rnoContent = /^(?:GET|HEAD)$/, @@ -109,7 +109,7 @@ jQuery.xhr = function( _native ) { // If data is available, append data to url if ( data ) { - url += (rquery.test(url) ? "&" : "?") + data; + url += (rquery_xhr.test(url) ? "&" : "?") + data; } // Add anti-cache in url if needed @@ -120,7 +120,7 @@ jQuery.xhr = function( _native ) { ret = url.replace(rts, "$1_=" + ts ); // if nothing was replaced, add timestamp to the end - url = ret + ((ret == url) ? (rquery.test(url) ? "&" : "?") + "_=" + ts : ""); + url = ret + ((ret == url) ? (rquery_xhr.test(url) ? "&" : "?") + "_=" + ts : ""); } s.url = url;