From 762b0d9510175489de223f30547f658f689662ba Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 3 Mar 2014 11:31:46 +0100 Subject: [PATCH] Allow XML entity loader for MDB2 schema loader --- lib/private/db/mdb2schemareader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php index 7a32d91261..86714618ef 100644 --- a/lib/private/db/mdb2schemareader.php +++ b/lib/private/db/mdb2schemareader.php @@ -41,7 +41,9 @@ class MDB2SchemaReader { */ public function loadSchemaFromFile($file) { $schema = new \Doctrine\DBAL\Schema\Schema(); + $loadEntities = libxml_disable_entity_loader(false); $xml = simplexml_load_file($file); + libxml_disable_entity_loader($loadEntities); foreach ($xml->children() as $child) { /** * @var \SimpleXMLElement $child