Issue Bug Rejected

#85062TYPO3 8.7 [SYS][trustedHostsPattern] = SERVER_NAME

Rene Tobias 05/22/18, 15:14 updated 05/31/18, 10:39

Description

Hello,

we have following problem in error log:

PHP Fatal error: Uncaught
UnexpectedValueException: The current host header value does not match the configured
trusted hosts pattern! Check the pattern defined in
$GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘trustedHostsPattern’] and adapt it, if you want to
allow the current host header ‘http://www.mydomain.si./’ for your installation. in
/var/www/html/typo3_source/typo3_src-8.7.12/typo3/sysext/core/Classes/Utility/GeneralUtility.php:29

So every time someone (bot…) wants to access following link http://www.mydomain.si*.*/ we get this php error.

The easy solution is to set ‘trustedHostsPattern’ => ‘.‘ My question: why is ‘trustedHostsPattern’ => ‘.’ in TYPO3 defined as “not recommended because it is insecure”? Is that really so? And why?

Reviews 0

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