#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
Related issues 1
History 515
-
Garvin Hicking changed Related to #104805 09/12/24, 07:58
-
Stefan Bürk changed category assigned to Stefan Bürk 09/15/24, 04:29
-
Gerrit Code Review pushed patch set 1 for main to change 86100 status
NewUnder Review 09/15/24, 04:30 -
Gerrit Code Review pushed patch set 2 for main to change 86100 10/18/24, 13:50
-
Gerrit Code Review pushed patch set 1 for main to change 88825 03/28/25, 12:19
-
Gerrit Code Review pushed patch set 2 for main to change 88825 03/28/25, 12:21
-
Gerrit Code Review pushed patch set 4 for main to change 89283 05/07/25, 14:23
-
Gerrit Code Review pushed patch set 5 for main to change 89283 05/07/25, 14:30
-
Gerrit Code Review pushed patch set 6 for main to change 89283 05/07/25, 17:02
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 89317 05/08/25, 09:04
-
Christian Kuhn commented and changed status
Under ReviewResolved done0 %100 % 05/08/25, 09:25 -
Gerrit Code Review pushed patch set 1 for 12.4 to change 90411 status
ResolvedUnder Review 08/15/25, 12:42 -
Gerrit Code Review pushed patch set 2 for 12.4 to change 90411 08/15/25, 14:41
-
Christian Kuhn commented and changed status
Under ReviewResolved 08/22/25, 15:35Applied in changeset commit:f84998d9035e32b985ac10771c89a2f282711eee.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:33
Applied in changeset commit:758f2186c8668d2a35502995c5a12e38b480de80.