]> git.joonet.de Git - adminer.git/commitdiff
Use redirect function
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 11 Sep 2009 18:47:35 +0000 (18:47 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 11 Sep 2009 18:47:35 +0000 (18:47 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1093 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/include/auth.inc.php

index 0202cea292306eb865779c9437aef57ff485de99..ce5eadd7a7edd82eb3a23731699a9100fc7a9f3f 100644 (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"]];