mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-04-02 21:06:19 +03:00
Merge branch 'develop' of https://github.com/PHPOffice/PHPExcel into develop
This commit is contained in:
commit
2f4fd4cdcb
1 changed files with 3 additions and 2 deletions
|
@ -366,6 +366,7 @@ class PHPExcel_Settings
|
|||
if (is_null($options)) {
|
||||
$options = LIBXML_DTDLOAD | LIBXML_DTDATTR;
|
||||
}
|
||||
@libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR));
|
||||
self::$_libXmlLoaderOptions = $options;
|
||||
} // function setLibXmlLoaderOptions
|
||||
|
||||
|
@ -379,8 +380,8 @@ class PHPExcel_Settings
|
|||
{
|
||||
libxml_disable_entity_loader(true);
|
||||
if (is_null(self::$_libXmlLoaderOptions)) {
|
||||
self::$_libXmlLoaderOptions = LIBXML_DTDLOAD | LIBXML_DTDATTR;
|
||||
self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR);
|
||||
}
|
||||
return self::$_libXmlLoaderOptions;
|
||||
} // function getLibXmlLoaderOptions
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue