Project

General

Profile

Actions

Bug #69368

closed

eID not recognized on POST requests

Added by Petra Arentzen over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2015-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

The problem seems to be in lines 111 to 113 in typo3/sysext/frontend/Classes/Http/EidRequestHandler.php:

        $eID = isset($request->getParsedBody()['eID'])
            ? $request->getParsedBody()['eID']
            : isset($request->getQueryParams()['eID']) ? $request->getQueryParams()['eID'] : '';

isset($request->getParsedBody()['eID']) condition seams to be negative but $request->getParsedBody()['eID'] would return content. Maybe a bug in PHP, but at last it's not working for me.

Changing the lines to:

        $eID = $request->getParsedBody()['eID'];
        if (!isset($eID)) {
            $eID = isset($request->getQueryParams()['eID']) ? $request->getQueryParams()['eID'] : '';
        }

works.

I'm using TYPO3 7.4.0 with self-compiled PHP 5.6.12 on a Debian Jessie (Also tested with 5.5.28 with same result).

Actions

Also available in: Atom PDF