1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-01 21:59:15 +00:00

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

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");