summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Helbling2012-04-04 09:19:58 +0000
committerChristian Helbling2012-04-04 09:19:58 +0000
commit14f1c25b43628013507da706544d5c55cb1bc461 (patch)
tree6c1d9e76e8a6388fdf7f1d2435f0da082bd7de62 /it.class
parentc3025c0c92c428ff29a3e7bf01bcee6a0b75a6ad (diff)
downloaditools-14f1c25b43628013507da706544d5c55cb1bc461.tar.gz
itools-14f1c25b43628013507da706544d5c55cb1bc461.tar.bz2
itools-14f1c25b43628013507da706544d5c55cb1bc461.zip
htmlspecialchars charset hack inside it::error
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 6a796d4..1be8f7c 100644
--- a/it.class
+++ b/it.class
@@ -231,7 +231,7 @@ static function error($p = array(), $body = null, $to = null) # $body and $to de
it::mail(array('To' => $p['to'], 'Subject' => substr($p['title'], 0, 80), 'Body' => $body) + (($cc = $GLOBALS['it_defaultconfig']['error_cc']) ? array('Cc' => $cc) : array()));
}
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
- echo "<pre>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, $GLOBALS['it_html']->p['charset']) . "</pre>";
+ echo "<pre>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
else # toscreen mode: shell (outputs to stderr)
error_log($p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . " " . (EDC('verbose') ? D($p['locals']) : ""));
}