cant use @-syntax with passwords, as they can start with an @

This commit is contained in:
Ralf Becker 2015-10-06 13:10:06 +00:00
parent 223918a192
commit 283b8bec33

View File

@ -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));