X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/621fc2f9638a1a92aa8535310e7852de5542f11e..17812701c38fbdc49ed5875ae7d6ab7cf08e68b3:/login/pass/index.php diff --git a/login/pass/index.php b/login/pass/index.php index cd65186..4fb50d0 100644 --- a/login/pass/index.php +++ b/login/pass/index.php @@ -14,10 +14,8 @@ if (isset($_GET['token'])) { } } elseif (!$User->login) { - http_response_code(303); $target = urlencode($_SERVER['REQUEST_URI']); - header("Location: /login?goto=$target"); - exit; + abort("/login?goto=$target", 303); } if ($_POST) {