|
@@ -22,7 +22,7 @@
|
|
|
|
|
|
|
|
if (! isset($_GET['redirection'])) $_GET['redirection'] = 0;
|
|
if (! isset($_GET['redirection'])) $_GET['redirection'] = 0;
|
|
|
$_GET['redirection']++;
|
|
$_GET['redirection']++;
|
|
|
-$https = isset($_SERVER['HTTPS']);
|
|
|
|
|
|
|
+$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
|
|
|
|
|
|
|
|
if ($_GET['redirection'] < 4) {
|
|
if ($_GET['redirection'] < 4) {
|
|
|
$target = 'http' . ($https ? 's://' : '://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|
|
$target = 'http' . ($https ? 's://' : '://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|