summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-03 11:31:46 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-03 14:17:51 +0100
commit79ae3c4527b492bee76b2951ca14e8259147b181 (patch)
tree048750915b7931fb7c04a373c08b4dd7d06f4361
parent84a87b96af39b4b55ae347ddef2af4577bb35ec3 (diff)
downloadnextcloud-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.php2
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