Commit 2037ee48 authored by Benjamin Sonntag's avatar Benjamin Sonntag

fix a 'already exist' error when creating a database containing an hyphen (-)

parent 21dda6ed
......@@ -145,7 +145,7 @@ class m_mysql {
$lo=addslashes($db->f("login"));
$pa=addslashes($db->f("pass"));
}
if ($db->query("CREATE DATABASE $dbname;")) {
if ($db->query("CREATE DATABASE `$dbname`;")) {
// Ok, database does not exist, quota is ok and dbname is compliant. Let's proceed
$db->query("INSERT INTO db (uid,login,pass,db,bck_mode) VALUES ('$cuid','$lo','$pa','$dbname',0);");
// give everything but GRANT on db.*
......
alternc (0.9.10) stable; urgency=low
* bugfixes:
* fix a "already exist" error when creating a database containing an hyphen (-)
* #1163: fix sqlbackup script call routine to retain backwards
compatibility
* fix usage of ISO8859-15 charset (that may NOT be defined in locales...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment