Project

General

Profile

Actions

Bug #86731

closed

Frontend RequestHandler can set $_POST to null

Added by Daniel Goerz over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2018-10-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If the body of e POST request is empty, the Frontend RequestHanlder sets $_POST to null wich leads to all kinds of errors.

One to reproduce:
1. Add a gp:myVar to your TypoScript when rendering any CObject
2. Make a POST request
3. An exception is thrown because $_POST is null but is treated as an array everywhere


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #86458: Merge PSR-7 request and _GET/_POST parametersClosedBenni Mack2018-09-29

Actions
Actions

Also available in: Atom PDF