"fixed error-message on no connection to a postgres server, to NOT contain the password"

This commit is contained in:
Ralf Becker 2007-12-07 00:16:25 +00:00
parent 1151deace4
commit a6b8ef57d5

View File

@ -315,6 +315,7 @@
}
if (!$Ok)
{
$Host = preg_replace('/password=[^ ]+/','password=$Password',$Host); // eg. postgres dsn contains password
$this->halt("ADOdb::$connect($Host, $User, \$Password, $Database) failed.");
return null; // in case error-reporting = 'no'
}