Use ['HTTPS'] to construct the nicetest URL, allowing Shimmie to use nice URLs when served over HTTPS

This commit is contained in:
Bill Garrett 2013-04-23 21:48:32 -07:00
parent 8d77d251a5
commit 861e04d85f

View File

@ -218,7 +218,7 @@ class Setup extends Extension {
$host .= ":" . $_SERVER["SERVER_PORT"]; $host .= ":" . $_SERVER["SERVER_PORT"];
} }
} }
$full = "http://" . $host . $_SERVER["PHP_SELF"]; $full = ($_SERVER["HTTPS"] ? "https://" : "http://") . $host . $_SERVER["PHP_SELF"];
$test_url = str_replace("/index.php", "/nicetest", $full); $test_url = str_replace("/index.php", "/nicetest", $full);
$nicescript = "<script language='javascript'> $nicescript = "<script language='javascript'>