Skip to content

Commit

Permalink
Fixed method call (setRevisionPassword -> setRevisionsPassword)
Browse files Browse the repository at this point in the history
  • Loading branch information
MewesK authored and PowerKiKi committed Jun 18, 2018
1 parent aa5b0d0 commit a6bb491
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Fixed

- Xlsx reader crashed when reading a file with workbook protection - [#553](https://github.com/PHPOffice/PhpSpreadsheet/pull/553)

## [1.3.1] - 2018-06-12

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ private function readProtection(Spreadsheet $excel, SimpleXMLElement $xmlWorkboo
}

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

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

0 comments on commit a6bb491

Please sign in to comment.