PhpSpreadsheet/tests/data/Reader
andres1gb 4cd1d7039d
Fix reading of files in the root of a zip (#2731)
* Fix reading of files in the root of a zip

Xlsx.php relies in dirname($filename) for path generation. When path is a bare filename (i.e. files in the root of the zip file), dirname($filename) returns a relative path to the current directory ("."). This is ok for filesystems, but not when accesing contents in a zip file.

Xlsx documents with files in the root of the zip container are not common, but legit. I've found it to happen in files generated by Google Campaign Manager 360.

* Update Xlsx.php

* Update Xlsx.php

* Update CHANGELOG.md

* Add files via upload

* Create XlsxRootZipFilesTest.php

* Update XlsxRootZipFilesTest.php

* Add files via upload

* Delete rootZipFiles.xlsx

* Update XlsxRootZipFilesTest.php

* Update Xlsx.php
2022-04-18 06:54:41 -07:00
..
CSV Work on setting up locale-aware formatted number conversion for the Csv Reader 2022-03-02 08:53:29 +01:00
Gnumeric Implement basic autofilter ranges with Gnumeric Reader (#2057) 2021-05-04 22:32:12 +02:00
HTML Improve Coverage for HTML Reader 2020-06-25 22:42:38 -07:00
Ods Unit tests for merge ranges for Ods Reader/Writer 2022-02-26 22:51:15 +01:00
Slk Process Comments in Sylk File (#2277) 2021-08-26 11:56:13 -07:00
XLS Fix font index problem (#2642) 2022-04-17 08:27:28 -07:00
XLSX Fix reading of files in the root of a zip (#2731) 2022-04-18 06:54:41 -07:00
Xml Extract Property and Style readers from the XML Reader into separate classes (#2009) 2021-04-20 15:27:44 +02:00