[BUGFIX] Use current domain if found in domain record 37/37037/9
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 20 Feb 2015 15:46:55 +0000 (16:46 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 21 Feb 2015 13:34:50 +0000 (14:34 +0100)
commit77fa6fe7d29c4228e3f4c06cc6743440d98f2803
tree368df1c586ee7b6e22948c9ab9481760f2002d5a
parent3819e2211edb7da8bd918158901548bd7c9eecfa
[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>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php