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:
parent
123c758e87
commit
1d57946d12
|
@ -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"]];
|
||||
|
|
Loading…
Reference in a new issue