1
0
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:
Cameron 2017-02-09 10:01:28 -08:00
parent e1af3eb015
commit 23b8c5d050

View File

@ -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';
}