Skip to content

Commit 10c3bde

Browse files
committed
#444 fallback check
1 parent 8dd1320 commit 10c3bde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/lib/HAXCMS.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ public function __construct()
9595
!in_array(strtolower($_SERVER['HTTPS']), array('off', 'no'))
9696
? 'https'
9797
: 'http';
98+
// fallback test for https
99+
if ($this->protocol == 'http' && isset($_SERVER["HTTP_USESSL"]) && $_SERVER["HTTP_USESSL"]) {
100+
$this->protocol = 'https';
101+
}
98102
// CLIs dont have a domain argument
99103
if (isset($_SERVER['HTTP_HOST'])) {
100104
$this->domain = $_SERVER['HTTP_HOST'];

0 commit comments

Comments
 (0)