mirror of
https://github.com/wallabag/wallabag.git
synced 2025-04-10 12:04:10 +00:00
[fix] Add support for X-Forwarded-Proto header field #413
This commit is contained in:
parent
1e1fd6f24d
commit
445a1a1c8d
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ class Tools
|
|||
|| (isset($_SERVER["SERVER_PORT"])
|
||||
&& $_SERVER["SERVER_PORT"] == '443') // HTTPS detection.
|
||||
|| (isset($_SERVER["SERVER_PORT"]) //Custom HTTPS port detection
|
||||
&& $_SERVER["SERVER_PORT"] == SSL_PORT);
|
||||
&& $_SERVER["SERVER_PORT"] == SSL_PORT)
|
||||
|| (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
|
||||
&& $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
|
||||
|
||||
$serverport = (!isset($_SERVER["SERVER_PORT"])
|
||||
|| $_SERVER["SERVER_PORT"] == '80'
|
||||
|
|
Loading…
Reference in a new issue