[BUGFIX] Use current domain if found in domain record
The introduction of domain record cache with #24389 introduced a regression. Previously if multiple domain names were found for one subtree, the domain name which matched the current host name was preferred. After the introduction of the cache, only the first domain record was considered. This patch properly checks the domain records against the current domain in use and selects the most appropriate one. Releases: master, 6.2 Resolves: #62556 Change-Id: I9cae580af9c9de0c1f6ed02d5ac8ad6a90a0fa2b Reviewed-on: http://review.typo3.org/37037 Reviewed-by:Markus Klein <klein.t3@reelworx.at> Tested-by:
Markus Klein <klein.t3@reelworx.at> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Helmut Hummel <helmut.hummel@typo3.org> Tested-by:
Helmut Hummel <helmut.hummel@typo3.org>
Showing
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 1 addition, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 19 additions, 7 deletions...ntend/Classes/Controller/TypoScriptFrontendController.php
- typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php 160 additions, 6 deletions...ests/Unit/Controller/TypoScriptFrontendControllerTest.php
Please register or sign in to comment