mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
Issue #2407 - SSL detection improvement.
This commit is contained in:
parent
e1af3eb015
commit
23b8c5d050
@ -3836,7 +3836,7 @@ class e107
|
||||
{
|
||||
// ssl_enabled pref not needed anymore, scheme is auto-detected
|
||||
$this->HTTP_SCHEME = 'http';
|
||||
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
|
||||
if((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443)
|
||||
{
|
||||
$this->HTTP_SCHEME = 'https';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user