Added libxml_disable_entity_loader calls
Workaround for libxml_disable_entity_loader bug using PHP+FastCGI
This commit is contained in:
parent
f4fa692165
commit
4338a291f8
@ -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();
|
||||
@ -147,4 +149,4 @@ class pluginSitemap extends Plugin {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user