]> source.dussan.org Git - jquery.git/commitdiff
The extra & was getting gobbled, oops.
authorJohn Resig <jeresig@gmail.com>
Mon, 17 Dec 2007 00:48:12 +0000 (00:48 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 17 Dec 2007 00:48:12 +0000 (00:48 +0000)
src/ajax.js

index bf3c238473ece848385862d98dd29010a33ab560..b193a62d9bf3c70d69a98c60d99f5dc628d0d408 100644 (file)
@@ -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