summaryrefslogtreecommitdiff
path: root/plugins/import_export
diff options
context:
space:
mode:
authorzaikos <[email protected]>2014-12-26 14:43:38 -0500
committerzaikos <[email protected]>2014-12-26 14:43:38 -0500
commit4262e0019a519b2db4d6507ff0f2984ac1c6249a (patch)
treeb7ed63e822916390c15d4186ba665cd1da6a5516 /plugins/import_export
parentec5ac2ec300199baceafc2103fb5a3d082ae8444 (diff)
Temporarily disable entity loader when importing XML file.
Diffstat (limited to 'plugins/import_export')
-rw-r--r--plugins/import_export/init.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php
index d185210ee..e61b62b67 100644
--- a/plugins/import_export/init.php
+++ b/plugins/import_export/init.php
@@ -189,6 +189,8 @@ class Import_Export extends Plugin implements IHandler {
$num_processed = 0;
$num_feeds_created = 0;
+ libxml_disable_entity_loader(false);
+
$doc = @DOMDocument::load($filename);
if (!$doc) {
@@ -206,6 +208,8 @@ class Import_Export extends Plugin implements IHandler {
$doc = DOMDocument::loadXML($data);
}
+ libxml_disable_entity_loader(true);
+
if ($doc) {
$xpath = new DOMXpath($doc);