diff --git a/core/Constants.php b/core/Constants.php index 70d698623..5215ecd39 100644 --- a/core/Constants.php +++ b/core/Constants.php @@ -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], ','); } }