From 2292c7500b2c9b5d3fba77babcdafb34cb0bd241 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 22 Mar 2012 14:36:19 +0000 Subject: output even incorrectly encoded data --- it_debug.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 6050cf0..44bcdf8 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, ENT_COMPAT, ini_get('default_charset')); + $item = htmlspecialchars($item, ENT_COMPAT, "ISO-8859-1"); 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)), ENT_COMPAT, ini_get('default_charset')); + $title = htmlspecialchars(it_debug::backtrace(array('skiplevels' => 1)), ENT_COMPAT, "ISO-8859-1"); if (isset($_SERVER['REMOTE_ADDR']) && !$plain) return "
$r\n"; -- cgit v1.2.3