summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_html.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_html.class b/it_html.class
index e9e312b..9db8893 100644
--- a/it_html.class
+++ b/it_html.class
@@ -507,6 +507,7 @@ function _cleanup($string, $charset)
*/
function Q($string)
{
+ $string = @strval($string);
if (preg_match('/[<>&"\x00-\x08\x0a-\x0c\x0e-\x1f\x80-\xff]/', $string)) # WARNING: copy/pasted to _tag()
{
$charset = $GLOBALS['it_html']->p['charset'] ?: ini_get('default_charset');