From: Andrew Dolgov Date: Wed, 14 Jun 2006 07:24:15 +0000 (+0100) Subject: set redirect_base to https:// prefix when ENABLE_LOGIN_SSL is enabled (closes #71) X-Git-Tag: 1.2.1~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3a82bc6005fe985ec21867a2abf3d75427b7a5c6;p=tt-rss.git set redirect_base to https:// prefix when ENABLE_LOGIN_SSL is enabled (closes #71) --- diff --git a/login.php b/login.php index a7b6ca42..2bd0d269 100644 --- a/login.php +++ b/login.php @@ -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");