From 201231cd4241f5686f1c8489746f35b4b9db42ab Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 2 Nov 2011 13:45:11 -0400 Subject: [PATCH] Fix encoding issues with debug(). Fixes #2199 --- lib/Cake/basics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/basics.php b/lib/Cake/basics.php index 833fdc61e32..e5b1f3ccbd1 100644 --- a/lib/Cake/basics.php +++ b/lib/Cake/basics.php @@ -106,7 +106,7 @@ function debug($var = false, $showHtml = null, $showFrom = true) { } $var = print_r($var, true); if ($showHtml) { - $var = htmlentities($var); + $var = h($var); } printf($template, $file, $line, $var); }