Permalink
Browse files

Fix encoding issues with debug().

Fixes #2199
  • Loading branch information...
markstory committed Nov 2, 2011
1 parent 3fc6d29 commit 201231cd4241f5686f1c8489746f35b4b9db42ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/basics.php
View
@@ -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);
}

0 comments on commit 201231c

Please sign in to comment.