summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
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 257074c..e38d7de 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -76,7 +76,7 @@ function from_xml($xmldata, $p)
while (!feof($xmldata) && preg_match('/[\x80-\xff]$/', $data)) # Make sure end of chunk is not in the middle of a UTF8 character
$data .= fread($xmldata, 1);
- $xmlorig .= $data;
+ $xmlorig = $data; # Do not append to keep memory footprint down!
list($data, $isutf8) = $this->_sanitize($data, $isutf8);
$result = xml_parse($parser, $data);
}