Added libxml_disable_entity_loader calls
Workaround for libxml_disable_entity_loader bug using PHP+FastCGI
This commit is contained in:
parent
4338a291f8
commit
c02a6d033a
@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user