page: redirect location option in abort()
[minimedit.git] / login / pass / index.php
index cd6518662616018bbc7cdbaec8c6d9a8f7167e96..4fb50d0f2993195f9bafc117287d4729dcae1f97 100644 (file)
@@ -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) {