From c02a6d033a46f04167948a538badf7d53022182f Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sat, 1 Oct 2016 21:13:24 +0200 Subject: [PATCH] Added libxml_disable_entity_loader calls Workaround for libxml_disable_entity_loader bug using PHP+FastCGI --- bl-plugins/rss/plugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php index 99a223da..0807322b 100644 --- a/bl-plugins/rss/plugin.php +++ b/bl-plugins/rss/plugin.php @@ -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 { } } -} \ No newline at end of file +}