X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=f514caee73bcdb9d864b547fc0e3abef08c39fea;hb=54bd004e53b4d89e9e7e7533f11c23ff99f70d73;hp=d0c6752788db5d7b68a657241ab354716cb14030;hpb=43b3ed086dd850388c72ea1cabb557125dfe095a;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index d0c6752..f514cae 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -624,7 +624,7 @@ jQuery.extend({ // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( var prefix in a ) { - buildParams( prefix, a[prefix] ); + buildParams( traditional ? prefix : prefix.replace(/[\[\]]/g, ""), a[prefix] ); } }