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:12:40 +02:00 committed by GitHub
parent f4fa692165
commit 4338a291f8
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ class pluginSitemap extends Plugin {
$doc = new DOMDocument();
// Load XML
libxml_disable_entity_loader(false);
$doc->load(PATH_PLUGINS_DATABASES.$this->directoryName.DS.'sitemap.xml');
libxml_disable_entity_loader(true);
// Print the XML
echo $doc->saveXML();