Skip to content

Commit edb5d32

Browse files
authored
Merge pull request #25 from PHPOffice/develop
Release 0.2.9
2 parents 028970e + 10c5c81 commit edb5d32

15 files changed

+39
-26
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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"pclzip/pclzip": "^2.8"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "3.7.*",
22+
"phpunit/phpunit": "^4.8.36 || ^7.0",
2323
"phpdocumentor/phpdocumentor":"2.*",
2424
"phpmd/phpmd": "2.*",
2525
"sebastian/phpcpd": "2.*",

phpunit.xml.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
convertNoticesToExceptions="true"
77
convertWarningsToExceptions="true"
88
processIsolation="false"
9-
stopOnFailure="false"
10-
syntaxCheck="false">
9+
stopOnFailure="false">
1110
<testsuites>
1211
<testsuite name="PhpOffice Common Test Suite">
1312
<directory>./tests/Common</directory>
@@ -19,7 +18,7 @@
1918
</whitelist>
2019
</filter>
2120
<logging>
22-
<log type="coverage-html" target="./build/coverage" charset="UTF-8" highlight="true" />
21+
<log type="coverage-html" target="./build/coverage" />
2322
<log type="coverage-clover" target="./build/logs/clover.xml" />
2423
</logging>
2524
</phpunit>

src/Common/Microsoft/PasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private static function getAlgorithm($algorithmName)
164164
/**
165165
* Returns the algorithm ID
166166
*
167-
* @param sting $algorithmName
167+
* @param string $algorithmName
168168
* @return int
169169
*/
170170
public static function getAlgorithmId($algorithmName)

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

tests/Common/Tests/Adapter/Zip/AbstractZipAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PhpOffice\Common\Tests\TestHelperZip;
66

7-
abstract class AbstractZipAdapterTest extends \PHPUnit_Framework_TestCase
7+
abstract class AbstractZipAdapterTest extends \PHPUnit\Framework\TestCase
88
{
99
protected $zipTest;
1010

tests/Common/Tests/AutoloaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Test class for Autoloader
2323
*/
24-
class AutoloaderTest extends \PHPUnit_Framework_TestCase
24+
class AutoloaderTest extends \PHPUnit\Framework\TestCase
2525
{
2626
/**
2727
* Register

tests/Common/Tests/DrawingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @coversDefaultClass PhpOffice\Common\IOFactory
2525
*/
26-
class DrawingTest extends \PHPUnit_Framework_TestCase
26+
class DrawingTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
*/

tests/Common/Tests/FileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @coversDefaultClass PhpOffice\Common\File
2525
*/
26-
class FileTest extends \PHPUnit_Framework_TestCase
26+
class FileTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
*/

0 commit comments

Comments
 (0)