diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-03 11:31:46 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-03 14:17:51 +0100 |
commit | 79ae3c4527b492bee76b2951ca14e8259147b181 (patch) | |
tree | 048750915b7931fb7c04a373c08b4dd7d06f4361 | |
parent | 84a87b96af39b4b55ae347ddef2af4577bb35ec3 (diff) | |
download | nextcloud-server-79ae3c4527b492bee76b2951ca14e8259147b181.tar.gz nextcloud-server-79ae3c4527b492bee76b2951ca14e8259147b181.zip |
Allow XML entity loader for MDB2 schema loader
Forward port of 762b0d9 from stable6 to master
-rw-r--r-- | lib/private/db/mdb2schemareader.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php index f9a76786c3e..1c16d03eab2 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 |