mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 21:41:28 +00:00
temporarily enable entity loader when importing opml because idk
This commit is contained in:
@@ -491,7 +491,9 @@ class Opml extends Handler_Protected {
|
|||||||
|
|
||||||
if (is_file($tmp_file)) {
|
if (is_file($tmp_file)) {
|
||||||
$doc = new DOMDocument();
|
$doc = new DOMDocument();
|
||||||
|
libxml_disable_entity_loader(false);
|
||||||
$doc->load($tmp_file);
|
$doc->load($tmp_file);
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
unlink($tmp_file);
|
unlink($tmp_file);
|
||||||
} else if (!$doc) {
|
} else if (!$doc) {
|
||||||
print_error(__('Error: unable to find moved OPML file.'));
|
print_error(__('Error: unable to find moved OPML file.'));
|
||||||
|
|||||||
Reference in New Issue
Block a user