added exit after redirect

This commit is contained in:
laf
2015-04-12 09:22:08 +01:00
parent cd5d18fa36
commit 52004231a2

View File

@ -110,6 +110,7 @@ if ((isset($_SESSION['username'])) || (isset($_COOKIE['sess_id'],$_COOKIE['token
$permissions = permissions_cache($_SESSION['user_id']); $permissions = permissions_cache($_SESSION['user_id']);
if (isset($_POST['username'])) { if (isset($_POST['username'])) {
header('Location: '.$_SERVER['REQUEST_URI'],TRUE,303); header('Location: '.$_SERVER['REQUEST_URI'],TRUE,303);
exit;
} }
} }
elseif (isset($_SESSION['username'])) elseif (isset($_SESSION['username']))