Skip to content

Commit 1d4f60b

Browse files
committed
[FIX] Logout on HTTPS
1 parent 64205dd commit 1d4f60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/include/classes/user.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function logoutUser($from="") {
435435
// Enforce generation of a new Session ID and delete the old
436436
session_regenerate_id(true);
437437
// Enforce a page reload and point towards login with referrer included, if supplied
438-
$location = @$_SERVER['HTTPS'] ? 'https' : 'http' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
438+
$location = @$_SERVER['HTTPS'] ? 'https' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] : 'http' . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
439439
if (!empty($from)) $location .= '?page=login&to=' . urlencode($from);
440440
// if (!headers_sent()) header('Location: ' . $location);
441441
exit('<meta http-equiv="refresh" content="0; url=' . $location . '"/>');

0 commit comments

Comments
 (0)