]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow XML entity loader for MDB2 schema loader
authorVincent Petry <pvince81@owncloud.com>
Mon, 3 Mar 2014 10:31:46 +0000 (11:31 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 3 Mar 2014 13:17:51 +0000 (14:17 +0100)
Forward port of 762b0d9 from stable6 to master

lib/private/db/mdb2schemareader.php

index f9a76786c3e9ec6701ee57a6f81aeef20823b3ab..1c16d03eab2cbfbcd724cfc46278321ebd124979 100644 (file)
@@ -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