Skip to content

Commit

Permalink
#444 fallback check
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Oct 5, 2019
1 parent 8dd1320 commit 10c3bde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/lib/HAXCMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public function __construct()
!in_array(strtolower($_SERVER['HTTPS']), array('off', 'no'))
? 'https'
: 'http';
// fallback test for https
if ($this->protocol == 'http' && isset($_SERVER["HTTP_USESSL"]) && $_SERVER["HTTP_USESSL"]) {
$this->protocol = 'https';
}
// CLIs dont have a domain argument
if (isset($_SERVER['HTTP_HOST'])) {
$this->domain = $_SERVER['HTTP_HOST'];
Expand Down

0 comments on commit 10c3bde

Please sign in to comment.