diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index 0202cea2..ce5eadd7 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -11,8 +11,7 @@ if (isset($_POST["server"])) { if (!isset($_COOKIE[$session_name])) { $location .= (strpos($location, "?") === false ? "?" : "&") . SID; } - header("Location: " . (strlen($location) ? $location : ".")); - exit; + redirect($location); } if ($_POST["token"]) { $_POST["token"] = $_SESSION["tokens"][$_POST["server"]];