1
0
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:
Cameron
2016-03-28 15:55:25 -07:00
parent 27848e1c00
commit 02112b1a98

View File

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