You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading an CSV file with IOFactory::load($file) should use the Csv Reader no matter whether the file starts with a BOM or not. The HTML Reader should do further checks regarding tags after finding a BOM.
What is the current behavior?
The HTML reader checks if the file starts with a BOM and returns true without any further syntax checks.
This is:
What is the expected behavior?
Reading an CSV file with
IOFactory::load($file)
should use the Csv Reader no matter whether the file starts with a BOM or not. The HTML Reader should do further checks regarding tags after finding a BOM.What is the current behavior?
The HTML reader checks if the file starts with a BOM and returns true without any further syntax checks.
I think the bug was introduced with this change 09c9a31#diff-914de62bf54eee4a88135dcbbbce0cf9a59ad5c08b21ac454e645d2bad2390caR151
What are the steps to reproduce?
IOFactory::load($file)
see my test in #4029
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
CSV, HTML
Which versions of PhpSpreadsheet and PHP are affected?
5.1.0
The text was updated successfully, but these errors were encountered: