From fb103ec6dbeda32eb9afc229614bade16a02e3c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Tue, 26 Nov 2019 12:10:54 +0100
Subject: [PATCH] Revert "Disable entity loader when validating schemas"

This reverts commit 961f52503b9300765fc8520d9c9326297d8d1e0a.
---
 lib/SimpleSAML/Utils/XML.php | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/SimpleSAML/Utils/XML.php b/lib/SimpleSAML/Utils/XML.php
index a0081d758..4b6c3cdfb 100644
--- a/lib/SimpleSAML/Utils/XML.php
+++ b/lib/SimpleSAML/Utils/XML.php
@@ -449,16 +449,7 @@ class XML
             $schemaPath = $config->resolvePath('schemas');
             $schemaFile = $schemaPath . '/' . $schema;
 
-            $entityLoader = libxml_disable_entity_loader(true);
-            $internalErrors = libxml_use_internal_errors(true);
-            libxml_clear_errors();
-
             $res = $dom->schemaValidate($schemaFile);
-
-            libxml_use_internal_errors($internalErrors);
-            libxml_disable_entity_loader($entityLoader);
-            libxml_clear_errors();
-
             if ($res) {
                 Errors::end();
                 return true;
-- 
GitLab