Project

General

Profile

Actions

Bug #90174

closed

Query generation in AJAX API doesn't consider array correctly

Added by Andreas Kienast over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-01-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The AJAX API is able to generate a query string based on the input it gets. This fails if an object contains a simple array as a value, the query looks like this:

Input:

{
  "foo": ['a', 'b']
}

Output:
foo=a&b

Expected:
foo[]=a&foo[]=b

Actions

Also available in: Atom PDF