diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 603fe383a..ac56dee2a 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -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'; }