Bugfix: Work item 18794 - CSV files without a file extension being identified as HTML

This commit is contained in:
Mark Baker
2012-10-16 13:39:59 +01:00
parent 7b8533a504
commit b2a26349d4
11 changed files with 110 additions and 103 deletions
+6 -1
View File
@@ -134,7 +134,12 @@ class PHPExcel_Reader_HTML implements PHPExcel_Reader_IReader
$data = fread($fh, 2048);
fclose($fh);
return true;
if ((strpos('<',$data) !== FALSE) &&
(strlen($data) !== strlen(strip_tags($data)))) {
return TRUE;
}
return FALSE;
}
/**