aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-12-17 00:48:12 +0000
committerJohn Resig <jeresig@gmail.com>2007-12-17 00:48:12 +0000
commit6a25c20f5cdf2eba12d204517598a9e1386ab3a6 (patch)
tree786d2662fa091b575ecf464f55042aa3f67541df
parentb721a2f472b53fec28276d2080d741cf070b686d (diff)
downloadjquery-6a25c20f5cdf2eba12d204517598a9e1386ab3a6.tar.gz
jquery-6a25c20f5cdf2eba12d204517598a9e1386ab3a6.zip
The extra & was getting gobbled, oops.
-rw-r--r--src/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index bf3c23847..b193a62d9 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