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();
|
$doc = new DOMDocument();
|
||||||
|
|
||||||
// Load XML
|
// Load XML
|
||||||
|
libxml_disable_entity_loader(false);
|
||||||
$doc->load(PATH_PLUGINS_DATABASES.$this->directoryName.DS.'rss.xml');
|
$doc->load(PATH_PLUGINS_DATABASES.$this->directoryName.DS.'rss.xml');
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
|
|
||||||
// Print the XML
|
// Print the XML
|
||||||
echo $doc->saveXML();
|
echo $doc->saveXML();
|
||||||
|
@ -105,4 +107,4 @@ class pluginRSS extends Plugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue