Skip to content

Commit

Permalink
removed filename check in saveBook
Browse files Browse the repository at this point in the history
It is really up to the calling function to ensure valid file names,
having the ePub classes do it in this case caused problems.
  • Loading branch information
Grandt committed Aug 13, 2015
1 parent 8d790c6 commit e0cb810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPePub/Core/EPub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ function buildTOC($cssFileName = null, $tocCSSClass = "toc", $title = "Table of
function saveBook($fileName, $baseDir = '.') {

// Make fileName safe
$fileName = $this->sanitizeFileName($fileName);
// $fileName = $this->sanitizeFileName($fileName); // It is up to the user to ensure valid file names.

// Finalize book, if it's not done already
if (!$this->isFinalized) {
Expand Down

0 comments on commit e0cb810

Please sign in to comment.