[BUGFIX] Use current domain if found in domain record 69/37069/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 20 Feb 2015 15:46:55 +0000 (16:46 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 21 Feb 2015 14:12:21 +0000 (15:12 +0100)
commit4b7c6b1bcac7573b2f837e095497a468c05783a7
tree8e5d758f0f1e4ffa3d0d8c40b7d742e3cd0e5d35
parent4ce642a676a7e5567464927824504e71d75160dc
[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/37069
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
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