Actions
Bug #71477
closedTypoScript condition hostname checks for IP address instead of host
Start date:
2015-11-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
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
.
Updated by Mathias Schreiber about 9 years ago
- Status changed from New to Closed
@param string $baseHost A hostname or an IPv4/IPv6-address (will by reverse-resolved; typically REMOTE_ADDR)
Mind the part in brackets.
Actions