#104928Passing a "type" array GET parameter triggers a PHP warning
Description
Calling https://www.example.com/?type[]=123 produces an entry like this in the sys_log:
PHP Warning: Array to string conversion in /var/www/html/vendor/typo3/cms-core/Classes/Routing/PageRouter.php line 562
We have observed this with TYPO3 11 and 12. From looking at the code the bug seems to be there also on main.
Reviews 5
- 12.4 90411[BUGFIX] Avoid PHP errors with broken FE URL arguments
- 13.4 89317[BUGFIX] Avoid PHP errors with broken FE URL arguments
- main 89283[BUGFIX] Avoid PHP errors with broken FE URL arguments
- main 86100[WIP][BUGFIX] Ensure resolving parts does not break with invalid `?type`
- main 88825[BUGFIX] Check if type param is a scalar value