From 75836f33860f26ca55ec8e8661cff4b0edc2fe5e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Dec 2005 21:34:29 +0100 Subject: option to redirect to https url for login, option ENABLE_LOGIN_SSL (fixes some non-absolute redirects) --- login.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'login.php') diff --git a/login.php b/login.php index b162fa9cd..eda2ac826 100644 --- a/login.php +++ b/login.php @@ -6,8 +6,11 @@ require_once "config.php"; require_once "functions.php"; + $url_path = get_script_urlpath(); + $redirect_base = "http://" . $_SERVER["SERVER_NAME"] . $url_path; + if (SINGLE_USER_MODE) { - header("Location: tt-rss.php"); + header("Location: $redirect_base/tt-rss.php"); exit; } @@ -25,7 +28,7 @@ } else { $redirect_to = "tt-rss.php"; } - header("Location: $redirect_to"); + header("Location: $redirect_base/$redirect_to"); } } -- cgit v1.2.3