mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[task/refactor-db-testcase] Do not show db password on connect error
PHPBB3-10043
This commit is contained in:
parent
17b17bc939
commit
d3718bf5d4
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ class phpbb_database_test_connection_manager
|
||||||
}
|
}
|
||||||
catch (PDOException $e)
|
catch (PDOException $e)
|
||||||
{
|
{
|
||||||
throw new Exception("Unable do connect to $dsn with error: {$e->getMessage()}");
|
$cleaned_dsn = str_replace($this->config['dbpasswd'], '*password*', $dsn);
|
||||||
|
throw new Exception("Unable do connect to $cleaned_dsn with error: {$e->getMessage()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// good for debug
|
// good for debug
|
||||||
|
|
Loading…
Add table
Reference in a new issue