From 1d4f60b4d963fba18c244171a9ba297999337db2 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 30 Sep 2013 13:25:27 +0200 Subject: [PATCH] [FIX] Logout on HTTPS --- public/include/classes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 3db25611..e01b24af 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -435,7 +435,7 @@ class User { // Enforce generation of a new Session ID and delete the old session_regenerate_id(true); // Enforce a page reload and point towards login with referrer included, if supplied - $location = @$_SERVER['HTTPS'] ? 'https' : 'http' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; + $location = @$_SERVER['HTTPS'] ? 'https' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] : 'http' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; if (!empty($from)) $location .= '?page=login&to=' . urlencode($from); // if (!headers_sent()) header('Location: ' . $location); exit('');