Issue Bug Closed

#69368eID not recognized on POST requests

Petra Arentzen 08/27/15, 16:44 updated 10/19/17, 21:52

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).

Reviews 1