mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 15:46:44 +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
|
// ssl_enabled pref not needed anymore, scheme is auto-detected
|
||||||
$this->HTTP_SCHEME = 'http';
|
$this->HTTP_SCHEME = 'http';
|
||||||
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
|
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
|
||||||
{
|
{
|
||||||
$this->HTTP_SCHEME = 'https';
|
$this->HTTP_SCHEME = 'https';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user