diff options
author | Urban Müller | 2015-10-16 14:00:00 +0200 |
---|---|---|
committer | Urban Müller | 2015-10-16 14:00:00 +0200 |
commit | cbe302c4d849dcc1b27a9cfecf1ce46a80572c04 (patch) | |
tree | 4ff49d5fff8de687cf75faad7723807c05aff6d2 /it_html.class | |
parent | 6083ab690e67d1b08e5d10828c666a0756969a3e (diff) | |
download | itools-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.class | 2 |
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()"); |