]> git.joonet.de Git - adminer.git/commitdiff
Use database name in creating new users
authorJakub Vrana <jakub@vrana.cz>
Sun, 16 Dec 2012 06:33:18 +0000 (22:33 -0800)
committerJakub Vrana <jakub@vrana.cz>
Sun, 16 Dec 2012 06:33:18 +0000 (22:33 -0800)
adminer/user.inc.php

index d6a5bc97c66c0ceacbc825a564eed245733ba343..bb1f73de019f2d435fa1413a85ae456f04fe48d1 100644 (file)
@@ -113,7 +113,7 @@ if ($_POST) {
        if ($old_pass != "") {
                $row["hashed"] = true;
        }
-       $grants[(DB != "" && !isset($_GET["host"]) ? idf_escape(addcslashes(DB, "%_")) : "") . ".*"] = array();
+       $grants[(DB == "" || $grants ? "" : idf_escape(addcslashes(DB, "%_"))) . ".*"] = array();
 }
 
 ?>