File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ public function logoutUser($from="") {
435
435
// Enforce generation of a new Session ID and delete the old
436
436
session_regenerate_id (true );
437
437
// 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 ' ];
439
439
if (!empty ($ from )) $ location .= '?page=login&to= ' . urlencode ($ from );
440
440
// if (!headers_sent()) header('Location: ' . $location);
441
441
exit ('<meta http-equiv="refresh" content="0; url= ' . $ location . '"/> ' );
You can’t perform that action at this time.
0 commit comments