Skip to content

Commit

Permalink
Avoid potentially unsupported PSR-16 cache keys
Browse files Browse the repository at this point in the history
Ensure compatibility with all PSR-16 cache implementation by using
a stricter character set for cache key that match the spec.

Fixes PHPOffice#354
  • Loading branch information
PowerKiKi authored and Frederic Delaunay committed Oct 29, 2018
1 parent 81258ef commit ba29811
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

- Avoid potentially unsupported PSR-16 cache keys - [#354](https://github.com/PHPOffice/PhpSpreadsheet/issues/354)

## [1.1.0] - 2018-01-28

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Collection/Cells.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function getHighestRow($column = null)
*/
private function getUniqueID()
{
return uniqid('phpspreadsheet-', true) . '-';
return uniqid('phpspreadsheet.', true) . '.';
}

/**
Expand Down

0 comments on commit ba29811

Please sign in to comment.