Skip to content
Snippets Groups Projects
Commit 1f896b12 authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid undefined array key access in StaticRouteResolver

Resolves: #101394
Releases: main, 12.4, 11.5
Change-Id: I1d0cbb99496108180cf1f06045934bb510abcd3f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80150


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent a40d92a9
Branches
Tags
No related merge requests found
......@@ -156,7 +156,7 @@ class StaticRouteResolver implements MiddlewareInterface
$parameters['type'] = $urlParams['pagetype'] ?? 0;
$parameters['_language'] = $request->getAttribute('language', null);
$uri = $site->getRouter()->generateUri(
(int)$urlParams['pageuid'],
(int)($urlParams['pageuid'] ?? 0),
$parameters,
'',
RouterInterface::ABSOLUTE_URL
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment