Skip to content

Commit e260525

Browse files
MewesKFrederic Delaunay
authored and
Frederic Delaunay
committed
Fixed method call (setRevisionPassword -> setRevisionsPassword)
Fixes PHPOffice#553
1 parent 4694644 commit e260525

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Xlsx reader crashed when reading a file with workbook protection - [#553](https://github.com/PHPOffice/PhpSpreadsheet/pull/553)
13+
814
## [1.3.1] - 2018-06-12
915

1016
### Fixed

src/PhpSpreadsheet/Reader/Xlsx.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ private function readProtection(Spreadsheet $excel, SimpleXMLElement $xmlWorkboo
24192419
}
24202420

24212421
if ($xmlWorkbook->workbookProtection['revisionsPassword']) {
2422-
$excel->getSecurity()->setRevisionPassword((string) $xmlWorkbook->workbookProtection['revisionsPassword'], true);
2422+
$excel->getSecurity()->setRevisionsPassword((string) $xmlWorkbook->workbookProtection['revisionsPassword'], true);
24232423
}
24242424

24252425
if ($xmlWorkbook->workbookProtection['workbookPassword']) {

0 commit comments

Comments
 (0)