Issue Bug Closed

#71477TypoScript condition hostname checks for IP address instead of host

Sebastian Michaelsen 11/11/15, 11:19 updated 11/11/15, 11:23

Description

https://github.com/TYPO3/TYPO3.CMS/blob/874a64c54712131350d195e77d775324682cc33a/typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php#L323

            case 'hostname':
                return (bool)GeneralUtility::cmpFQDN(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
                break;

Instead of checking against REMOTE_HOST (as it says in the documentation) it checks for REMOTE_ADDR.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.