summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-03-22 14:36:19 +0000
committerUrban Müller2012-03-22 14:36:19 +0000
commit2292c7500b2c9b5d3fba77babcdafb34cb0bd241 (patch)
tree04ecfaf240ffa84c60e187277c96a6dbc4f17657
parentcf7594b3a903c866ed4b32ffaec01cbd6ddc5cb6 (diff)
downloaditools-2292c7500b2c9b5d3fba77babcdafb34cb0bd241.tar.gz
itools-2292c7500b2c9b5d3fba77babcdafb34cb0bd241.tar.bz2
itools-2292c7500b2c9b5d3fba77babcdafb34cb0bd241.zip
output even incorrectly encoded data
-rw-r--r--it_debug.class4
1 files changed, 2 insertions, 2 deletions
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 "<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";