From 02112b1a9858465f0737ac2e15b9cc7d92e0cb69 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 28 Mar 2016 15:55:25 -0700 Subject: [PATCH] Issue #1287 Improved SSL detection. --- e107_handlers/e107_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }