diff --git a/Classes/PHPExcel/Settings.php b/Classes/PHPExcel/Settings.php index cde7b6e7..839231ba 100644 --- a/Classes/PHPExcel/Settings.php +++ b/Classes/PHPExcel/Settings.php @@ -378,10 +378,10 @@ class PHPExcel_Settings */ public static function getLibXmlLoaderOptions() { - libxml_disable_entity_loader(true); if (is_null(self::$_libXmlLoaderOptions)) { self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR); } + @libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR)); return self::$_libXmlLoaderOptions; } // function getLibXmlLoaderOptions }