File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
- Updated CI to also test on PHP 8.3 #407
9
9
- Updated readme PHP requirement to PHP 7.0+ #407
10
10
- Added dependabot for GitHub Actions #407
11
+ - Cast ` $_SERVER['SERVER_PORT'] ` to integer to prevent adding 80 or 443 port to redirect URL. #403
11
12
12
13
## [ 1.0.0] - 2023-12-13
13
14
Original file line number Diff line number Diff line change @@ -696,7 +696,7 @@ public function getRedirectURL(): string
696
696
if (isset ($ _SERVER ['HTTP_X_FORWARDED_PORT ' ])) {
697
697
$ port = (int )$ _SERVER ['HTTP_X_FORWARDED_PORT ' ];
698
698
} elseif (isset ($ _SERVER ['SERVER_PORT ' ])) {
699
- $ port = $ _SERVER ['SERVER_PORT ' ];
699
+ $ port = ( int ) $ _SERVER ['SERVER_PORT ' ];
700
700
} elseif ($ protocol === 'https ' ) {
701
701
$ port = 443 ;
702
702
} else {
You can’t perform that action at this time.
0 commit comments