summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
authorChristian Schneider2009-10-05 11:41:50 +0000
committerChristian Schneider2009-10-05 11:41:50 +0000
commit02e27747f8a92cbf047606d3cf9e208e925fe004 (patch)
treee4fd2fef2277b142b35d7e7ceab5a78ddaedcec4 /it_xml.class
parent815e12f8731453fce48628ce0cdd3177c3f2abf7 (diff)
downloaditools-02e27747f8a92cbf047606d3cf9e208e925fe004.tar.gz
itools-02e27747f8a92cbf047606d3cf9e208e925fe004.tar.bz2
itools-02e27747f8a92cbf047606d3cf9e208e925fe004.zip
Fix typo in data sanitizer and added encoding support
Diffstat (limited to 'it_xml.class')
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index 6013b52..ff594fd 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -89,7 +89,7 @@ function from_xml($xmldata, $p)
$xmldata = '<?xml version="1.0" encoding="' . $this->_p['encoding'] . '"?>' . $xmldata;
# decode illegal entities but protect semantically important ones
- $xmldata = html_entity_decode(preg_replace('/&(amp|lt|gt|#38|#60|#62|#x26|#x3C|#3E);/i', '&amp;$1;', $xmldata));
+ $xmldata = html_entity_decode(preg_replace('/&(amp|lt|gt|#38|#60|#62|#x26|#x3C|#x3E);/i', '&amp;$1;', $xmldata), ENT_QUOTES, $this->_p['encoding']);
$result = xml_parse($parser, $xmldata);
}