mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Remove censoring of schema and prefix from debug()
As per discussion in #cakephp the other day, `debug()` will automatically censor out a list of keys, including `prefix` and `schema`. These are useful to see in output for debugging prefix routing, and should not automatically be considered sensitive information.
This commit is contained in:
parent
a6a699b4b9
commit
83b904bc7b
1 changed files with 1 additions and 7 deletions
|
@ -455,8 +455,6 @@ class Debugger {
|
||||||
* - host
|
* - host
|
||||||
* - database
|
* - database
|
||||||
* - port
|
* - port
|
||||||
* - prefix
|
|
||||||
* - schema
|
|
||||||
*
|
*
|
||||||
* This is done to protect database credentials, which could be accidentally
|
* This is done to protect database credentials, which could be accidentally
|
||||||
* shown in an error message if CakePHP is deployed in development mode.
|
* shown in an error message if CakePHP is deployed in development mode.
|
||||||
|
@ -514,8 +512,6 @@ class Debugger {
|
||||||
* - host
|
* - host
|
||||||
* - database
|
* - database
|
||||||
* - port
|
* - port
|
||||||
* - prefix
|
|
||||||
* - schema
|
|
||||||
*
|
*
|
||||||
* @param array $var The array to export.
|
* @param array $var The array to export.
|
||||||
* @param int $depth The current depth, used for recursion tracking.
|
* @param int $depth The current depth, used for recursion tracking.
|
||||||
|
@ -528,9 +524,7 @@ class Debugger {
|
||||||
'login' => '*****',
|
'login' => '*****',
|
||||||
'host' => '*****',
|
'host' => '*****',
|
||||||
'database' => '*****',
|
'database' => '*****',
|
||||||
'port' => '*****',
|
'port' => '*****'
|
||||||
'prefix' => '*****',
|
|
||||||
'schema' => '*****'
|
|
||||||
);
|
);
|
||||||
$replace = array_intersect_key($secrets, $var);
|
$replace = array_intersect_key($secrets, $var);
|
||||||
$var = $replace + $var;
|
$var = $replace + $var;
|
||||||
|
|
Loading…
Add table
Reference in a new issue