summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2015-10-16 14:00:00 +0200
committerUrban Müller2015-10-16 14:00:00 +0200
commitcbe302c4d849dcc1b27a9cfecf1ce46a80572c04 (patch)
tree4ff49d5fff8de687cf75faad7723807c05aff6d2 /it_html.class
parent6083ab690e67d1b08e5d10828c666a0756969a3e (diff)
downloaditools-cbe302c4d849dcc1b27a9cfecf1ce46a80572c04.tar.gz
itools-cbe302c4d849dcc1b27a9cfecf1ce46a80572c04.tar.bz2
itools-cbe302c4d849dcc1b27a9cfecf1ce46a80572c04.zip
handle missing it_html
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index e8969fb..e9e312b 100644
--- a/it_html.class
+++ b/it_html.class
@@ -509,7 +509,7 @@ function Q($string)
{
if (preg_match('/[<>&"\x00-\x08\x0a-\x0c\x0e-\x1f\x80-\xff]/', $string)) # WARNING: copy/pasted to _tag()
{
- $charset = $GLOBALS['it_html']->p['charset'];
+ $charset = $GLOBALS['it_html']->p['charset'] ?: ini_get('default_charset');
if ($GLOBALS['debug_utf8check'] && $charset == "utf-8")
$string = it::any2utf8($string, "error in Q()");