summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
authorChristian Schneider2012-03-20 17:18:20 +0000
committerChristian Schneider2012-03-20 17:18:20 +0000
commit8a9d596c3c9e112025e594bff402a479c149c2d9 (patch)
treeb0b430df897a49c108e4ac3218ab308ccd202bae /it_debug.class
parent5781eba8b158ecb3fc6d62ebe13223168534e862 (diff)
downloaditools-8a9d596c3c9e112025e594bff402a479c149c2d9.tar.gz
itools-8a9d596c3c9e112025e594bff402a479c149c2d9.tar.bz2
itools-8a9d596c3c9e112025e594bff402a479c149c2d9.zip
Explicitely give encoding for htmlspecialchars for PHP 5.4 compatibility
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";