Fix signature detection on Excel2003XML
Signature can be with single quotes: ``` <?xml version='1.0'?> <?mso-application progid='Excel.Sheet'?> ```
This commit is contained in:
parent
102c19356f
commit
d791a0bbeb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue