修正数据库查询一处问题 改进数据库异常避免暴露敏感信息

This commit is contained in:
thinkphp
2017-07-04 09:08:52 +08:00
parent 439ccdf418
commit 6e94f2eae7
3 changed files with 10 additions and 7 deletions

View File

@@ -36,6 +36,7 @@ class DbException extends Exception
'Error SQL' => $sql,
]);
unset($config['username'], $config['password']);
$this->setData('Database Config', $config);
}