]> git.wh0rd.org Git - tt-rss.git/commitdiff
temporarily enable entity loader when importing opml because idk
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 9 Dec 2014 19:54:44 +0000 (22:54 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 9 Dec 2014 19:54:44 +0000 (22:54 +0300)
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.'));