mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX undeclared constant issue
This commit is contained in:
parent
a80c6e1e8c
commit
b7b1aba3fb
@ -185,7 +185,7 @@ if(!isset($_SERVER['HTTP_HOST'])) {
|
|||||||
|
|
||||||
if (TRUSTED_PROXY && !empty($_SERVER[$trustedProxyHeader])) {
|
if (TRUSTED_PROXY && !empty($_SERVER[$trustedProxyHeader])) {
|
||||||
// Get the first host, in case there's multiple separated through commas
|
// 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], ',');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user