Skip to content
Snippets Groups Projects
Commit 5ae8ab84 authored by Christos Diamantis's avatar Christos Diamantis Committed by Ray Jakes
Browse files

Issue #3343432 by Christos Diamantis, apaderno: libxml_disable_entity_loader() is deprecated

parent 1b849722
No related branches found
No related tags found
No related merge requests found
......@@ -550,7 +550,9 @@ class Xml extends QueryPluginBase {
}
// @see http://symfony.com/blog/security-release-symfony-2-0-11-released
$disable_entities = libxml_disable_entity_loader(TRUE);
if (\PHP_VERSION_ID < 80000) {
$disable_entities = libxml_disable_entity_loader(TRUE);
}
$document->loadXML($contents, $options);
......@@ -570,7 +572,9 @@ class Xml extends QueryPluginBase {
}
}
libxml_disable_entity_loader($disable_entities);
if (\PHP_VERSION_ID < 80000) {
libxml_disable_entity_loader($disable_entities);
}
return $document;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment