Actions
Bug #89980
closedNumeric keys in $_SERVER array lead to type error
Start date:
2019-12-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Calling whatever URL results in the following error:
TypeError strpos() expects parameter 1 to be string, int given
In order to create the error the Variable $_SERVER['1'] can be set.
The error is created in in /home/daniels/Projects/own/website-typo3/project/private/typo3/sysext/core/Classes/Http/ServerRequestFactory.php line 101:
protected static function prepareHeaders(array $server) { $headers = []; foreach ($server as $key => $value) { if (strpos($key, 'HTTP_COOKIE') === 0) { // Cookies are handled using the $_COOKIE superglobal continue; }
Actions