Side navigation
#8902 closed bug (duplicate)
Opened April 18, 2011 11:38AM UTC
Closed April 18, 2011 01:21PM UTC
Last modified April 18, 2011 01:21PM UTC
jQuery.param regression with empty arrays
Reported by: | roborg@hotmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
For the following code:
var obj = {'foo[]':[]}; var str = jQuery.param(obj);
In jQuery 1.4.2, str === "" but in jQuery 1.5.2 str === "foo%5B%5D=".
The end result is that in 1.5.2, PHP receives an array with a single element, which is an empty string - this is incorrect.
Sorry - duplicate of #6481