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

This commit is contained in:
Ralf Becker 2015-10-06 13:11:05 +00:00
parent 121f5dc68d
commit f724e47b2d

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