diff options
author | Christian Schneider | 2012-03-20 17:18:20 +0000 |
---|---|---|
committer | Christian Schneider | 2012-03-20 17:18:20 +0000 |
commit | 8a9d596c3c9e112025e594bff402a479c149c2d9 (patch) | |
tree | b0b430df897a49c108e4ac3218ab308ccd202bae /it_xml.class | |
parent | 5781eba8b158ecb3fc6d62ebe13223168534e862 (diff) | |
download | itools-8a9d596c3c9e112025e594bff402a479c149c2d9.tar.gz itools-8a9d596c3c9e112025e594bff402a479c149c2d9.tar.bz2 itools-8a9d596c3c9e112025e594bff402a479c149c2d9.zip |
Explicitely give encoding for htmlspecialchars for PHP 5.4 compatibility
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 4 |
1 files changed, 2 insertions, 2 deletions
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')); } } |