summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_debug.class b/it_debug.class
index ec6de07..6050cf0 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -143,7 +143,7 @@ function dump($args)
$item = "$red$item$nored";
if (isset($_SERVER['REMOTE_ADDR']) && !$plain) # html encode content and link any urls
- $item = htmlspecialchars($item);
+ $item = htmlspecialchars($item, ENT_COMPAT, ini_get('default_charset'));
if (preg_match('/^[\'"]/', $var))
$r .= "$item ";
@@ -158,7 +158,7 @@ function dump($args)
$r = str_repeat(" ", count(debug_backtrace(@constant('DEBUG_BACKTRACE_IGNORE_ARGS')))-3) . $r;
# not it_html::Q(); we dont wanna load it_html in ultraclassloader debugging
- $title = htmlspecialchars(it_debug::backtrace(array('skiplevels' => 1)));
+ $title = htmlspecialchars(it_debug::backtrace(array('skiplevels' => 1)), ENT_COMPAT, ini_get('default_charset'));
if (isset($_SERVER['REMOTE_ADDR']) && !$plain)
return "<pre title='$title' style='color:#c00; text-align:left; background-color:white; margin:0 0 0.4em; padding:0 0 0.4em 0; border-bottom:1px solid #ddd'>$r</pre>\n";