mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
cant use @-syntax with passwords, as they can start with an @
This commit is contained in:
parent
121f5dc68d
commit
f724e47b2d
@ -347,7 +347,7 @@ class egw_db
|
||||
{
|
||||
$this->Type = $GLOBALS['egw_info']['server']['db_type'];
|
||||
}
|
||||
foreach(array('Database', 'Host', 'Port', 'User', 'Password', 'Type') as $var)
|
||||
foreach(array('Database', 'Host', 'Port', 'User', 'Type') as $var)
|
||||
{
|
||||
$val = (string)$this->$var;
|
||||
if ($val[0] === '@') $this->$var = getenv(substr($val, 1));
|
||||
|
Loading…
Reference in New Issue
Block a user