Skip to content

Commit 3b0de9d

Browse files
committed
fix: bring back #404
1 parent 7569311 commit 3b0de9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/OpenIDConnectClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ public function getRedirectURL(): string
690690
if (isset($_SERVER['HTTP_X_FORWARDED_PORT'])) {
691691
$port = (int)$_SERVER['HTTP_X_FORWARDED_PORT'];
692692
} elseif (isset($_SERVER['SERVER_PORT'])) {
693-
$port = $_SERVER['SERVER_PORT'];
693+
# keep this case - even if some tool claim it is unnecessary
694+
$port = (int)$_SERVER['SERVER_PORT'];
694695
} elseif ($protocol === 'https') {
695696
$port = 443;
696697
} else {

0 commit comments

Comments
 (0)