From 357ea4900321004b7716fbefefb0865bed31cfe9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 7 Dec 2007 00:17:35 +0000 Subject: [PATCH] "fixed error-message on no connection to a postgres server, to NOT contain the password" --- phpgwapi/inc/class.egw_db.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index e25c537d92..d2cfc00ee1 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -291,6 +291,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 0; // in case error-reporting = 'no' }