diff options
author | Andrew Dolgov <[email protected]> | 2006-06-14 08:24:15 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-06-14 08:24:15 +0100 |
commit | 3a82bc6005fe985ec21867a2abf3d75427b7a5c6 (patch) | |
tree | e20d2b049effde062639db8945f555cb0e8cae43 /login.php | |
parent | 9e62a175070a09aebf4ad552e9dc1a694aba4efd (diff) |
set redirect_base to https:// prefix when ENABLE_LOGIN_SSL is enabled (closes #71)
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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"); |