summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
authorChristian Schneider2012-03-20 17:18:20 +0000
committerChristian Schneider2012-03-20 17:18:20 +0000
commit8a9d596c3c9e112025e594bff402a479c149c2d9 (patch)
treeb0b430df897a49c108e4ac3218ab308ccd202bae /it_xml.class
parent5781eba8b158ecb3fc6d62ebe13223168534e862 (diff)
downloaditools-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.class4
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'));
}
}