mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Issue #2407 - SSL detection improvement.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user