Merge pull request #7555 from AshleyPinner/patch-2

Remove censoring of schema and prefix from debug()
This commit is contained in:
Mark Story 2015-10-15 09:44:08 -04:00
commit a409a3d8c5

View file

@ -455,8 +455,6 @@ class Debugger {
* - host
* - database
* - port
* - prefix
* - schema
*
* This is done to protect database credentials, which could be accidentally
* shown in an error message if CakePHP is deployed in development mode.
@ -514,8 +512,6 @@ class Debugger {
* - host
* - database
* - port
* - prefix
* - schema
*
* @param array $var The array to export.
* @param int $depth The current depth, used for recursion tracking.
@ -528,9 +524,7 @@ class Debugger {
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'schema' => '*****'
'port' => '*****'
);
$replace = array_intersect_key($secrets, $var);
$var = $replace + $var;