X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/714373870efc4f371ace2d324530a2354a696da7..2013f7a1c3ef61a66f5b158823d19c8e6ade8886:/login/index.php diff --git a/login/index.php b/login/index.php index 0f428ca..8e36628 100644 --- a/login/index.php +++ b/login/index.php @@ -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)) {