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:
Enyby 2016-09-30 23:55:28 +03:00 committed by Adrien Crivelli
parent 102c19356f
commit d791a0bbeb
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class Excel2003XML extends BaseReader implements IReader
// Read sample data (first 2 KB will do) // Read sample data (first 2 KB will do)
$data = fread($fileHandle, 2048); $data = fread($fileHandle, 2048);
fclose($fileHandle); fclose($fileHandle);
$data = strtr($data, "'", '"'); // fix headers with single quote
$valid = true; $valid = true;
foreach ($signature as $match) { foreach ($signature as $match) {