X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b9757db57858fdcff8af1a6566e299559e491b17..da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e:/login/post/index.php diff --git a/login/post/index.php b/login/post/index.php index 442efef..c4dcffc 100644 --- a/login/post/index.php +++ b/login/post/index.php @@ -1,11 +1,9 @@ api) return; if (!$User->login) { - http_response_code(303); $target = urlencode($_SERVER['REQUEST_URI']); - header("Location: /login?goto=$target"); - exit; + abort("/login?goto=$target", 303); } elseif ($User->admin('user') and $username = @$_REQUEST['login']) { try {