mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:45:55 +00:00
Temporarily disable entity loader when importing XML file.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user