Skip to content
Snippets Groups Projects
Commit fb103ec6 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Revert "Disable entity loader when validating schemas"

This reverts commit 961f5250.
parent 68473304
No related branches found
No related tags found
No related merge requests found
...@@ -449,16 +449,7 @@ class XML ...@@ -449,16 +449,7 @@ class XML
$schemaPath = $config->resolvePath('schemas'); $schemaPath = $config->resolvePath('schemas');
$schemaFile = $schemaPath . '/' . $schema; $schemaFile = $schemaPath . '/' . $schema;
$entityLoader = libxml_disable_entity_loader(true);
$internalErrors = libxml_use_internal_errors(true);
libxml_clear_errors();
$res = $dom->schemaValidate($schemaFile); $res = $dom->schemaValidate($schemaFile);
libxml_use_internal_errors($internalErrors);
libxml_disable_entity_loader($entityLoader);
libxml_clear_errors();
if ($res) { if ($res) {
Errors::end(); Errors::end();
return true; return true;
......
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