Database name is LIKE pattern

This commit is contained in:
Jakub Vrana 2011-08-04 13:54:08 +02:00
parent 55223eb10c
commit 388c21a0f9

View file

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