Fixed ajax array arguments in $.param
authorSean Catchpole <littlecooldude@gmail.com>
Thu, 26 Jul 2007 00:27:56 +0000 (00:27 +0000)
committerSean Catchpole <littlecooldude@gmail.com>
Thu, 26 Jul 2007 00:27:56 +0000 (00:27 +0000)
src/ajax/ajax.js

index 645caf7..c8e10bd 100644 (file)
@@ -794,7 +794,7 @@ jQuery.extend({
                                // If the value is an array then the key names need to be repeated
                                if ( a[j] && a[j].constructor == Array )
                                        jQuery.each( a[j], function(){
-                                               s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
+                                               s.push( encodeURIComponent(j) + "[]=" + encodeURIComponent( this ) );
                                        });
                                else
                                        s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) );