From 861e04d85f72dae73208d34309124e376ebf668d Mon Sep 17 00:00:00 2001 From: Bill Garrett Date: Tue, 23 Apr 2013 21:48:32 -0700 Subject: [PATCH] Use ['HTTPS'] to construct the nicetest URL, allowing Shimmie to use nice URLs when served over HTTPS --- ext/setup/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/setup/main.php b/ext/setup/main.php index c2ca62d0..010b0807 100644 --- a/ext/setup/main.php +++ b/ext/setup/main.php @@ -218,7 +218,7 @@ class Setup extends Extension { $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); $nicescript = "