mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Issue #1287 Improved SSL detection.
This commit is contained in:
@@ -3488,7 +3488,7 @@ class e107
|
||||
{
|
||||
// ssl_enabled pref not needed anymore, scheme is auto-detected
|
||||
$this->HTTP_SCHEME = 'http';
|
||||
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
|
||||
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
|
||||
{
|
||||
$this->HTTP_SCHEME = 'https';
|
||||
}
|
||||
|
Reference in New Issue
Block a user