Skip to main content

Bug Tracker

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.

Attachments (0)
Change History (3)

Changed April 18, 2011 11:57AM UTC by anonymous comment:1

Sorry - duplicate of #6481

Changed April 18, 2011 01:21PM UTC by addyosmani comment:2

resolution: → duplicate
status: newclosed

Changed April 18, 2011 01:21PM UTC by addyosmani comment:3

Duplicate of #6481.