]> git.wh0rd.org Git - tt-rss.git/commitdiff
Temporarily disable entity loader when importing XML file.
authorzaikos <no-reply@zaikos.com>
Fri, 26 Dec 2014 19:43:38 +0000 (14:43 -0500)
committerzaikos <no-reply@zaikos.com>
Fri, 26 Dec 2014 19:43:38 +0000 (14:43 -0500)
plugins/import_export/init.php

index d185210eee2d8be25e21ceb226e025d1d476a7aa..e61b62b675377b4c18a2fbee49f7e6e8a06ddfc6 100644 (file)
@@ -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);