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 7569311 commit 3b0de9dCopy full SHA for 3b0de9d
src/OpenIDConnectClient.php
@@ -690,7 +690,8 @@ public function getRedirectURL(): string
690
if (isset($_SERVER['HTTP_X_FORWARDED_PORT'])) {
691
$port = (int)$_SERVER['HTTP_X_FORWARDED_PORT'];
692
} elseif (isset($_SERVER['SERVER_PORT'])) {
693
- $port = $_SERVER['SERVER_PORT'];
+ # keep this case - even if some tool claim it is unnecessary
694
+ $port = (int)$_SERVER['SERVER_PORT'];
695
} elseif ($protocol === 'https') {
696
$port = 443;
697
} else {
0 commit comments