From: Andrew Dolgov Date: Tue, 9 Dec 2014 19:54:44 +0000 (+0300) Subject: temporarily enable entity loader when importing opml because idk X-Git-Tag: 1.15.1~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3457ce7c5963e507a2116866cedb1f1509230c93;p=tt-rss.git temporarily enable entity loader when importing opml because idk --- diff --git a/classes/opml.php b/classes/opml.php index c8c59e8a..04516dde 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -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.'));