From 83b904bc7bfaf967c9323b483bd4c0f3fb2baa91 Mon Sep 17 00:00:00 2001 From: Ashley Pinner Date: Thu, 15 Oct 2015 12:55:32 +0100 Subject: [PATCH] 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. --- lib/Cake/Utility/Debugger.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Cake/Utility/Debugger.php b/lib/Cake/Utility/Debugger.php index ec29a4d6e..50587f6e8 100644 --- a/lib/Cake/Utility/Debugger.php +++ b/lib/Cake/Utility/Debugger.php @@ -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;