mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Allow specifying database in login form (bug #3499359)
This commit is contained in:
@@ -28,8 +28,9 @@ if ($auth) {
|
||||
|| DRIVER != $auth["driver"]
|
||||
|| SERVER != $auth["server"]
|
||||
|| $_GET["username"] !== $auth["username"] // "0" == "00"
|
||||
|| DB != $auth["db"]
|
||||
) {
|
||||
redirect(auth_url($auth["driver"], $auth["server"], $auth["username"]));
|
||||
redirect(auth_url($auth["driver"], $auth["server"], $auth["username"], $auth["db"]));
|
||||
}
|
||||
} elseif ($_POST["logout"]) {
|
||||
if ($token && $_POST["token"] != $token) {
|
||||
|
Reference in New Issue
Block a user