"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:17:35 +00:00
parent 86d3c5f159
commit 357ea49003

View File

@ -291,6 +291,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 0; // in case error-reporting = 'no' return 0; // in case error-reporting = 'no'
} }