diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-02-14 15:25:05 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-02-14 15:25:05 +0100 |
commit | d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17 (patch) | |
tree | 760e388d71a105c206cbe0c7989c073c1a49d472 | |
parent | 17b17bc9399c0e72bebb74979f42aae5a683ae8b (diff) | |
download | forums-d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17.tar forums-d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17.tar.gz forums-d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17.tar.bz2 forums-d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17.tar.xz forums-d3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17.zip |
[task/refactor-db-testcase] Do not show db password on connect error
PHPBB3-10043
-rw-r--r-- | tests/test_framework/phpbb_database_test_connection_manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php index 3389081c4e..707ce70fd0 100644 --- a/tests/test_framework/phpbb_database_test_connection_manager.php +++ b/tests/test_framework/phpbb_database_test_connection_manager.php @@ -82,7 +82,8 @@ class phpbb_database_test_connection_manager } 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 |