mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Allow XML entity loader for MDB2 schema loader
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user