We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2c34a commit 4638b30Copy full SHA for 4638b30
lib/Saml2/Utils.php
@@ -494,7 +494,7 @@ protected static function getRawHost()
494
if (self::$_host) {
495
$currentHost = self::$_host;
496
} elseif (self::getProxyVars() && array_key_exists('HTTP_X_FORWARDED_HOST', $_SERVER)) {
497
- $currentHost = $_SERVER['HTTP_X_FORWARDED_HOST'];
+ $currentHost = explode(',', $_SERVER['HTTP_X_FORWARDED_HOST'])[0];
498
} elseif (array_key_exists('HTTP_HOST', $_SERVER)) {
499
$currentHost = $_SERVER['HTTP_HOST'];
500
} elseif (array_key_exists('SERVER_NAME', $_SERVER)) {
0 commit comments