Update src/PhpSpreadsheet/Reader/Security/XmlScanner.php

Co-Authored-By: MarkBaker <mark@lange.demon.co.uk>
This commit is contained in:
Adrien Crivelli 2018-11-20 11:46:09 +01:00 committed by GitHub
parent 7f4a6e37b1
commit e4be53888f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class XmlScanner
public function __construct($pattern = '<!DOCTYPE') public function __construct($pattern = '<!DOCTYPE')
{ {
$this->pattern = $pattern; $this->pattern = $pattern;
$this->libxmlDisableEntityLoader = $this->IdentifyLibxmlDisableEntityLoaderAvailability(); $this->libxmlDisableEntityLoader = $this->identifyLibxmlDisableEntityLoaderAvailability();
if ($this->libxmlDisableEntityLoader) { if ($this->libxmlDisableEntityLoader) {
libxml_disable_entity_loader(false); libxml_disable_entity_loader(false);