X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/1d0e94b9030f08157198b6e4911491698e9d2f5f..7e9770cf632171b58a5796356678fa1120c07a37:/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)) {