forked from extern/egroupware
"fixed error-message on no connection to a postgres server, to NOT contain the password"
This commit is contained in:
parent
1151deace4
commit
a6b8ef57d5
@ -315,6 +315,7 @@
|
|||||||
}
|
}
|
||||||
if (!$Ok)
|
if (!$Ok)
|
||||||
{
|
{
|
||||||
|
$Host = preg_replace('/password=[^ ]+/','password=$Password',$Host); // eg. postgres dsn contains password
|
||||||
$this->halt("ADOdb::$connect($Host, $User, \$Password, $Database) failed.");
|
$this->halt("ADOdb::$connect($Host, $User, \$Password, $Database) failed.");
|
||||||
return null; // in case error-reporting = 'no'
|
return null; // in case error-reporting = 'no'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user