From: John Resig Date: Mon, 17 Dec 2007 00:48:12 +0000 (+0000) Subject: The extra & was getting gobbled, oops. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;ds=sidebyside;h=6a25c20f5cdf2eba12d204517598a9e1386ab3a6;p=jquery.git The extra & was getting gobbled, oops. --- diff --git a/src/ajax.js b/src/ajax.js index bf3c238..b193a62 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -177,8 +177,8 @@ jQuery.extend({ // Replace the =? sequence both in the query string and the data if ( s.data ) - s.data = (s.data + "").replace(jsre, "=" + jsonp); - s.url = s.url.replace(jsre, "=" + jsonp); + s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1"); + s.url = s.url.replace(jsre, "=" + jsonp + "$1"); // We need to make sure // that a JSONP style response is executed properly