From d791a0bbeb54bf6ce8ad2efe8843852f7ea41659 Mon Sep 17 00:00:00 2001 From: Enyby Date: Fri, 30 Sep 2016 23:55:28 +0300 Subject: [PATCH] Fix signature detection on Excel2003XML Signature can be with single quotes: ``` ``` --- src/PhpSpreadsheet/Reader/Excel2003XML.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpSpreadsheet/Reader/Excel2003XML.php b/src/PhpSpreadsheet/Reader/Excel2003XML.php index b52c1069..06bcdeee 100644 --- a/src/PhpSpreadsheet/Reader/Excel2003XML.php +++ b/src/PhpSpreadsheet/Reader/Excel2003XML.php @@ -82,6 +82,7 @@ class Excel2003XML extends BaseReader implements IReader // Read sample data (first 2 KB will do) $data = fread($fileHandle, 2048); fclose($fileHandle); + $data = strtr($data, "'", '"'); // fix headers with single quote $valid = true; foreach ($signature as $match) {