X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/714373870efc4f371ace2d324530a2354a696da7..2013f7a1c3ef61a66f5b158823d19c8e6ade8886:/login/post/index.php?ds=sidebyside diff --git a/login/post/index.php b/login/post/index.php index 442efef..23c4451 100644 --- a/login/post/index.php +++ b/login/post/index.php @@ -2,10 +2,8 @@ if (!$User) 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 {