<?php
-if (!$User) return;
+if ($Page->api) return;
$message = NULL;
if (isset($_POST['mail'])) {
if (isset($_REQUEST['goto'])) {
$target = ltrim($_REQUEST['goto'], '/');
- header("Location: /$target");
- http_response_code(302);
- exit;
+ abort("/$target", 302);
}
if (isset($Page->raw)) {