[BUGFIX] Avoid mapping route values that are out of scope
Given a static route argument mapper is used - for instance one that allows values in the range of 1 to 100 - then generating an URL from a route with an out of scope `&value=5000` was still generating an URL. However, HTTP request to that URL would result in an 404 error. This change skips routes using out of scope values during the URL generation process to avoid pointing to invalid resources. Resolves: #103400 Releases: main, 12.4, 11.5 Change-Id: I11e12f29e294ec86bec948d3a922d4a56b231771 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84003 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/core/Classes/Routing/PageRouter.php 4 additions, 1 deletiontypo3/sysext/core/Classes/Routing/PageRouter.php
- typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/RouteTest.php 66 additions, 0 deletions...nctional/SiteHandling/EnhancerLinkGenerator/RouteTest.php
- typo3/sysext/frontend/Tests/Functional/SiteHandling/Framework/Builder/VariableValue.php 44 additions, 5 deletions...nctional/SiteHandling/Framework/Builder/VariableValue.php
Please register or sign in to comment