Added libxml_disable_entity_loader calls

Workaround for libxml_disable_entity_loader bug using PHP+FastCGI
This commit is contained in:
Steffen Lange 2016-10-01 21:13:24 +02:00 committed by GitHub
parent 4338a291f8
commit c02a6d033a

View File

@ -95,7 +95,9 @@ class pluginRSS extends Plugin {
$doc = new DOMDocument();
// Load XML
libxml_disable_entity_loader(false);
$doc->load(PATH_PLUGINS_DATABASES.$this->directoryName.DS.'rss.xml');
libxml_disable_entity_loader(true);
// Print the XML
echo $doc->saveXML();
@ -105,4 +107,4 @@ class pluginRSS extends Plugin {
}
}
}
}