[fix] fixing db issue when creating a DB + post/request for SQLRESTORE

This commit is contained in:
Benjamin Sonntag 2016-07-12 15:54:21 +02:00
parent 9aa3f43160
commit 3ffa78aa5f
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ require_once("../class/config.php");
include_once("head.php"); include_once("head.php");
$fields = array ( $fields = array (
"id" => array ("post", "string", ""), "id" => array ("request", "string", ""),
"filename" => array ("post", "string", ""), "filename" => array ("post", "string", ""),
); );
getFields($fields); getFields($fields);

View File

@ -469,7 +469,7 @@ class m_mysql {
return false; return false;
} }
$grant = "grant " . $rights . " on " . $base . "." . $table . " to " . $db->quote($user) . "@" . $db->quote($this->dbus->Client); $grant = "grant " . $rights . " on `" . $base . "`." . $table . " to " . $db->quote($user) . "@" . $db->quote($this->dbus->Client);
if ($pass) { if ($pass) {
$grant .= " identified by " . $db->quote($pass) . ";"; $grant .= " identified by " . $db->quote($pass) . ";";