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 = "