|
11 | 11 | use PhpOffice\PhpSpreadsheet\Reader\Security\XmlScanner; |
12 | 12 | use PhpOffice\PhpSpreadsheet\ReferenceHelper; |
13 | 13 | use PhpOffice\PhpSpreadsheet\RichText\RichText; |
14 | | -use PhpOffice\PhpSpreadsheet\Settings; |
15 | 14 | use PhpOffice\PhpSpreadsheet\Shared\File; |
16 | 15 | use PhpOffice\PhpSpreadsheet\Spreadsheet; |
17 | 16 | use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; |
@@ -104,7 +103,7 @@ public function listWorksheetNames(string $filename): array |
104 | 103 |
|
105 | 104 | $xml = new XMLReader(); |
106 | 105 | $contents = $this->gzfileGetContents($filename); |
107 | | - $xml->xml($contents, null, Settings::getLibXmlLoaderOptions()); |
| 106 | + $xml->xml($contents); |
108 | 107 | $xml->setParserProperty(2, true); |
109 | 108 |
|
110 | 109 | $worksheetNames = []; |
@@ -133,7 +132,7 @@ public function listWorksheetInfo(string $filename): array |
133 | 132 |
|
134 | 133 | $xml = new XMLReader(); |
135 | 134 | $contents = $this->gzfileGetContents($filename); |
136 | | - $xml->xml($contents, null, Settings::getLibXmlLoaderOptions()); |
| 135 | + $xml->xml($contents); |
137 | 136 | $xml->setParserProperty(2, true); |
138 | 137 |
|
139 | 138 | $worksheetInfo = []; |
@@ -248,7 +247,7 @@ public function loadIntoExisting(string $filename, Spreadsheet $spreadsheet): Sp |
248 | 247 |
|
249 | 248 | /** @var XmlScanner */ |
250 | 249 | $securityScanner = $this->securityScanner; |
251 | | - $xml2 = simplexml_load_string($securityScanner->scan($gFileData), 'SimpleXMLElement', Settings::getLibXmlLoaderOptions()); |
| 250 | + $xml2 = simplexml_load_string($securityScanner->scan($gFileData)); |
252 | 251 | $xml = self::testSimpleXml($xml2); |
253 | 252 |
|
254 | 253 | $gnmXML = $xml->children(self::NAMESPACE_GNM); |
|
0 commit comments