From 8a9d596c3c9e112025e594bff402a479c149c2d9 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 20 Mar 2012 17:18:20 +0000 Subject: Explicitely give encoding for htmlspecialchars for PHP 5.4 compatibility --- it_xml.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_xml.class') diff --git a/it_xml.class b/it_xml.class index 4c9cb1c..0679c69 100644 --- a/it_xml.class +++ b/it_xml.class @@ -269,7 +269,7 @@ function to_xml($p = array()) $p['nextindentation'] .= $p['indent']; foreach ((array)$this->attr as $key => $value) - $tag .= " $key=\"" . htmlspecialchars($value) . '"'; + $tag .= " $key=\"" . htmlspecialchars($value, ENT_COMPAT, ini_get('default_charset')) . '"'; $vars = get_object_vars($this); @@ -302,7 +302,7 @@ function to_xml($p = array()) } } else if ($key == 'val') - $body .= htmlspecialchars($values); + $body .= htmlspecialchars($values, ENT_COMPAT, ini_get('default_charset')); } } -- cgit v1.2.3