Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 8f265a9

Browse files
author
Mark Baker
committed
Added XXE protection to HTML Reader
1 parent 6517850 commit 8f265a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/PHPExcel/Reader/HTML.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
424424
// Create a new DOM object
425425
$dom = new domDocument;
426426
// Reload the HTML file into the DOM object
427-
$loaded = $dom->loadHTMLFile($pFilename);
427+
$loaded = $dom->loadHTMLFile($pFilename, PHPExcel_Settings::getLibXmlLoaderOptions());
428428
if ($loaded === FALSE) {
429429
throw new PHPExcel_Reader_Exception('Failed to load ',$pFilename,' as a DOM Document');
430430
}

0 commit comments

Comments
 (0)