Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Worksheet title invalid character check comparison #712

Open
wants to merge 2 commits into
base: 1.8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Worksheet.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ private static function checkSheetCodeName($pValue)
private static function checkSheetTitle($pValue)
{
// Some of the printable ASCII characters are invalid: * : / \ ? [ ]
if (str_replace(self::$invalidCharacters, '', $pValue) !== $pValue) {
if (str_replace(self::$invalidCharacters, '', $pValue) !== (string) $pValue) {
throw new PHPExcel_Exception('Invalid character found in sheet title');
}

Expand Down