Skip to content

Commit 1934fe9

Browse files
committed
1 parent 6cca983 commit 1934fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Saml2/Utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ public static function getSelfURLhost()
260260
$protocol = 'http';
261261
}
262262

263-
if (isset($_SERVER["X-FORWARDED-PORT"])) {
264-
$portnumber = $_SERVER["X-FORWARDED-PORT"];
263+
if (isset($_SERVER["HTTP_X_FORWARDED_PORT"])) {
264+
$portnumber = $_SERVER["HTTP_X_FORWARDED_PORT"];
265265
} else if (isset($_SERVER["SERVER_PORT"])) {
266266
$portnumber = $_SERVER["SERVER_PORT"];
267267
}

0 commit comments

Comments
 (0)