set redirect_base to https:// prefix when ENABLE_LOGIN_SSL is enabled (closes #71)

This commit is contained in:
Andrew Dolgov 2006-06-14 08:24:15 +01:00
parent 9e62a17507
commit 3a82bc6005
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@
require_once "functions.php";
$url_path = get_script_urlpath();
$redirect_base = "http://" . $_SERVER["SERVER_NAME"] . $url_path;
if (ENABLE_LOGIN_SSL) {
$redirect_base = "https://" . $_SERVER["SERVER_NAME"] . $url_path;
} else {
$redirect_base = "http://" . $_SERVER["SERVER_NAME"] . $url_path;
}
if (SINGLE_USER_MODE) {
header("Location: $redirect_base/tt-rss.php");