mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[task/refactor-db-testcase] Do not show db password on connect error
PHPBB3-10043
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user