Merge pull request #5102 from dhensby/pulls/fix-proxy-host-header

BUG Fixing undeclared constant issue
This commit is contained in:
Damian Mooyman 2016-02-27 20:19:11 +13:00
commit 4d6e8a4dbd

View File

@ -183,7 +183,7 @@ if(!isset($_SERVER['HTTP_HOST'])) {
if (TRUSTED_PROXY && !empty($_SERVER[$trustedProxyHeader])) {
// Get the first host, in case there's multiple separated through commas
$_SERVER['HTTP_HOST'] = strtok($_SERVER[SS_TRUSTED_PROXY_HOST_HEADER], ',');
$_SERVER['HTTP_HOST'] = strtok($_SERVER[$trustedProxyHeader], ',');
}
}