mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
need to replace - and . with _ in database-name
This commit is contained in:
parent
c4f56f2c3b
commit
f303930f6d
@ -179,7 +179,7 @@ class setup_cmd_database extends setup_cmd
|
|||||||
{
|
{
|
||||||
$this->set_defaults['db_name'] = $this->db_name =
|
$this->set_defaults['db_name'] = $this->db_name =
|
||||||
$this->set_defaults['db_user'] = $this->db_user = // change user too (otherwise existing user/db could not connect any more!)
|
$this->set_defaults['db_user'] = $this->db_user = // change user too (otherwise existing user/db could not connect any more!)
|
||||||
substr($this->db_name,0,self::MAX_DB_NAME_LEN);
|
substr(str_replace(array('.', '-'), '_', $this->db_name),0,self::MAX_DB_NAME_LEN);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$msg = $this->connect();
|
$msg = $this->connect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user