Skip to content

Commit f8598d6

Browse files
committed
disable xml entities parsing and update changelog
1 parent d489595 commit f8598d6

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@
4848

4949
### Features
5050
- Added `\PhpOffice\Common\File::fileGetContents()` (with support of zip://)
51-
- Added Support for PHP 7.1
51+
- Added Support for PHP 7.1
52+
53+
## 0.2.8
54+
55+
### Features
56+
- Added possibility to register namespaces to DOMXpath
57+
- Added Utility to get an Office compatible hash of a password
58+
- Write attribute's value of type float independently of locale
59+
60+
## 0.2.9
61+
- Fix XML Entity injection vulnerability

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.7
1+
0.2.9

src/Common/XMLReader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getDomFromZip($zipFile, $xmlFile)
7171
*/
7272
public function getDomFromString($content)
7373
{
74+
libxml_disable_entity_loader(true);
7475
$this->dom = new \DOMDocument();
7576
$this->dom->loadXML($content);
7677

0 commit comments

Comments
 (0)