set redirect_base to https:// prefix when ENABLE_LOGIN_SSL is enabled (closes #71)
This commit is contained in:
parent
9e62a17507
commit
3a82bc6005
|
@ -7,7 +7,12 @@
|
|||
require_once "functions.php";
|
||||
|
||||
$url_path = get_script_urlpath();
|
||||
|
||||
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");
|
||||
|
|
Loading…
Reference in New Issue