Bug #87387

Return type of TYPO3\CMS\Core\Http\NormalizedParams::determineSiteScript is wrong in some cases

Added by Harald Atteneder 12 days ago. Updated 7 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-01-10
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

Should always return a string. But substr returns a boolean when $start is greater or equal to the length of the string itself.

Therefore TYPO3\CMS\Core\Http\NormalizedParams::determineSiteScript throws the following error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Return value of TYPO3\CMS\Core\Http\NormalizedParams::determineSiteScript() must be of the type string, boolean returned | TypeError thrown in file /html/public/typo3/sysext/core/Classes/Http/NormalizedParams.php in line 809. Requested URL: http://domain.tld/

History

#1 Updated by Gerrit Code Review 12 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59395

#2 Updated by Gerrit Code Review 12 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59395

#3 Updated by Gerrit Code Review 12 days ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59395

#4 Updated by Gerrit Code Review 7 days ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59395

Also available in: Atom PDF