diff --git a/classes/Browser.php b/classes/Browser.php index ac25498..17fb69f 100644 --- a/classes/Browser.php +++ b/classes/Browser.php @@ -53,7 +53,7 @@ class Browser { if (strpos($destination, '://') === false) { - $destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination; + $destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination; } header('Location: ' . $destination); diff --git a/jar.php b/jar.php index 76003a6..0950cee 100755 --- a/jar.php +++ b/jar.php @@ -358,7 +358,7 @@ class Browser { if (strpos($destination, '://') === false) { - $destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination; + $destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination; } header('Location: ' . $destination);