]> git.wh0rd.org - tt-rss.git/blobdiff - classes/opml.php
temporarily enable entity loader when importing opml because idk
[tt-rss.git] / classes / opml.php
index c8c59e8a25448a72bd6caf7fad63526c165249e6..04516dde42339bb4a15d57150930de38158d317d 100644 (file)
@@ -491,7 +491,9 @@ class Opml extends Handler_Protected {
 
                if (is_file($tmp_file)) {
                        $doc = new DOMDocument();
+                       libxml_disable_entity_loader(false);
                        $doc->load($tmp_file);
+                       libxml_disable_entity_loader(true);
                        unlink($tmp_file);
                } else if (!$doc) {
                        print_error(__('Error: unable to find moved OPML file.'));