X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b9757db57858fdcff8af1a6566e299559e491b17..58c5ec6b45dcc52107f5e7c8bbca2933c7f2e98d:/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 {