X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/1d0e94b9030f08157198b6e4911491698e9d2f5f..da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e:/login/index.php diff --git a/login/index.php b/login/index.php index 0f428ca..38b7c23 100644 --- a/login/index.php +++ b/login/index.php @@ -1,5 +1,5 @@ api) return; $message = NULL; if (isset($_POST['mail'])) { @@ -59,9 +59,7 @@ if (!$User or !$User->login) { if (isset($_REQUEST['goto'])) { $target = ltrim($_REQUEST['goto'], '/'); - header("Location: /$target"); - http_response_code(302); - exit; + abort("/$target", 302); } if (isset($Page->raw)) {