page: redirect location option in abort()
[minimedit.git] / login / index.php
index 0f428ca48f95e8d70bda44ccb11eb31b4013e4a3..8e36628be24128aae6c4664555581390c443694d 100644 (file)
@@ -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)) {