Use redirect function

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1093 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-09-11 18:47:35 +00:00
parent 123c758e87
commit 1d57946d12

View file

@ -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"]];