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 6cca983 commit 1934fe9Copy full SHA for 1934fe9
lib/Saml2/Utils.php
@@ -260,8 +260,8 @@ public static function getSelfURLhost()
260
$protocol = 'http';
261
}
262
263
- if (isset($_SERVER["X-FORWARDED-PORT"])) {
264
- $portnumber = $_SERVER["X-FORWARDED-PORT"];
+ if (isset($_SERVER["HTTP_X_FORWARDED_PORT"])) {
+ $portnumber = $_SERVER["HTTP_X_FORWARDED_PORT"];
265
} else if (isset($_SERVER["SERVER_PORT"])) {
266
$portnumber = $_SERVER["SERVER_PORT"];
267
0 commit comments