mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Merge pull request #836 from akoenig/x-forwarded-port
Implemented additional check for using the 'X-Forwarded-Port' header.
This commit is contained in:
commit
b3c720b1c3
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ final class Tools
|
|||
|| ($https && $_SERVER["SERVER_PORT"]==SSL_PORT) //Custom HTTPS port detection
|
||||
? '' : ':' . $_SERVER["SERVER_PORT"]);
|
||||
|
||||
if (isset($_SERVER["HTTP_X_FORWARDED_PORT"])) {
|
||||
$serverport = ':' . $_SERVER["HTTP_X_FORWARDED_PORT"];
|
||||
}
|
||||
|
||||
$scriptname = str_replace('/index.php', '/', $_SERVER["SCRIPT_NAME"]);
|
||||
|
||||
if (!isset($_SERVER["HTTP_HOST"])) {
|
||||
|
|
Loading…
Reference in a new issue