From: Andrew Dolgov Date: Tue, 30 Jan 2018 10:17:05 +0000 (+0300) Subject: import_export: do not use DOMDocument->loadXML in static context X-Git-Tag: 18.8~78 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=1ddf3a28e56d64fa8e80868e731cdde8b2abefa8 import_export: do not use DOMDocument->loadXML in static context --- diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 1f7a31ba..a4a6387e 100755 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -217,7 +217,7 @@ class Import_Export extends Plugin implements IHandler { } if ($data) - $doc = DOMDocument::loadXML($data); + $doc = (new DOMDocument)->loadXML($data); } libxml_disable_entity_loader(true);