Commit Graph

4618 Commits

Author SHA1 Message Date
oleibman a3f9ba96bb Update content-hash 2025-02-07 21:43:24 -08:00
oleibman f705c56e39 Prepare Changelog For New Release 2.1.9 2025-02-07 18:58:47 -08:00
oleibman 3789837ca7 Backport 2 Fixes to Writer/Xls/Parser
PR #4333 and PR #4344.
2025-02-06 20:05:26 -08:00
oleibman 8be52afdac Update Changelog 2.1.8 2025-01-25 20:51:58 -08:00
oleibman f68f688810 Security Patch Special Characters in Protocol 2025-01-23 22:40:52 -08:00
oleibman 0a3d70c2cc Upgrade mitoteam/jpgraph 2025-01-15 22:47:13 -08:00
oleibman 173ff7b936 Tweak One Test
Fluke failure in CI push.
2025-01-15 01:50:39 -08:00
oleibman 6e5bbcd045 Backported Security Patch 2.1.7 2025-01-11 19:19:56 -08:00
oleibman 3ebcbcf2cd Change hash code for worksheet branch release210 (#4307)
* Change hash code for worksheet branch release210

Backport of PR #4207

* Retitling Clone Worksheets

Backport of PR #4302.
2025-01-08 14:37:50 -08:00
oleibman 094bd12158 Remove Scrutinizer and Coverage from CI (#4303)
Not interested in them for backport releases.
2025-01-06 17:40:52 -08:00
oleibman 7e78035209 Update License 2025-01-04 21:36:12 -08:00
oleibman 1840d713e4 Upgrade tcpdf to 6.8.0 2024-12-27 16:20:48 -08:00
oleibman 04e8b6edc1 Backport Html Writer Security Patches 2.1.6 2024-12-26 21:13:22 -08:00
oleibman 9b9a55c715 Backport Security Patches for Samples 2024-12-25 19:35:43 -08:00
oleibman 9e7df84a8c Install Locales to Avoid Skipping Some Tests 2024-12-23 09:08:09 -08:00
oleibman 3df80f9a46 Restore Accidentally Disabled Test 2024-12-15 14:48:25 -08:00
oleibman 01aabc6a77 Eliminate unneeded line 2024-12-13 16:14:02 -08:00
oleibman 9adbb864ff Additional Context Options for http(s) Image
Backport of PR #4276.
2024-12-13 15:11:18 -08:00
oleibman 7327aa0d45 Upgrade Dompdf, Tcpdf, .gitattributes 2.1.5 2024-12-07 22:01:17 -08:00
oleibman 2dac558f34 Fix Minor Break Handling Drawings
Backport of #4241. Some security batches caused a minor break in Drawings, forcing `setWorksheet` to come after `setPath`. Although the problem is easily fixed in user code, this was not an intended change. Some slight recoding restores the earlier functionality where the order of calls was not important, without sacrificing the security gains.
2024-11-25 20:19:54 -08:00
oleibman db57c5bdbf Try Again To Suppress github-pages For This Branch 2024-11-22 22:51:49 -08:00
oleibman 52de298ece Ignore Settings::libXmlLoaderOptions
Backport of PR #4233.
2.1.4
2024-11-21 22:17:24 -08:00
oleibman 819854a668 Upgrade PhpUnit
To a version which is aware that Php8.4 deprecates E_STRICT.
2024-11-14 12:08:33 -08:00
oleibman db89fe2b2b Simplify Test Bootstrap 2024-11-13 08:43:07 -08:00
oleibman 4545ecf648 Downgrade Symfony/Process
A bit messier than expected. Current version of symfony/process (used only in dev) has a security advisory. There is no version that can be upgraded to which supports Php8.0. However, a downgrade to V5 will work.

When running with Php8.4, PhpUnit references E_STRICT, which is deprecated in 8.4. I don't understand why this doesn't happen with release1291. Be that as it may, we can't upgrade Phpunit to V10 because we need to support Php8.0. So, monkey around with tests/bootstrap.php to avoid problems.
2024-11-12 19:23:20 -08:00
oleibman 2aee18eb65 Update GitHub Pages Only For Branch master 2024-11-12 07:07:13 -08:00
oleibman 5a253a2d8e Update One Github Action
Was using deprecated version.
2024-11-10 10:04:19 -08:00
oleibman fbd9a63e2f Backport Security Patch 2.1.3 2024-11-10 01:29:56 -08:00
oleibman 2a1ece2ec0 Backport PR #4189 Csv Method 2024-10-14 21:53:35 -07:00
oleibman 4e58d8ae15 Update Changelog 2.1.1 2024-09-29 00:06:46 -07:00
oleibman 60b115c312 Forgot to Delete Some Lines 2024-09-24 17:55:03 -07:00
oleibman c26e766130 Restore 2 Disabled Tests 2024-09-24 17:47:28 -07:00
oleibman e04ed222b3 Backport Security Patch 2024-09-24 05:55:56 -07:00
oleibman 392dd08c55 Html Writer Validate Hyperlink Protocols 2024-09-14 05:26:18 -07:00
oleibman a2448b197a More Tests 2024-09-13 10:18:23 -07:00
oleibman bc74f3aa1d Validate POST Data in Sample 45
Errors can result if not validated.
2024-09-08 15:40:25 -07:00
oleibman 949ff63e1f Prepare Csv Reader for Php8.4
Also security patches.
2024-09-08 11:53:27 -07:00
oleibman 822d910911 Prepare for 2.1.1 2024-09-08 06:45:58 -07:00
Adrien Crivelli dbed77bd3a 2.1.0 2.1.0 2024-05-11 11:17:56 +07:00
oleibman 791c8cf9a5 Merge pull request #4019 from oleibman/issue3995
Html Reader Non-UTF8 Charsets
2024-05-10 06:28:21 +00:00
oleibman bdcbc0481b Update reading-and-writing-to-file.md 2024-05-09 23:21:26 -07:00
oleibman f8e31b367b Update CHANGELOG.md 2024-05-09 23:07:12 -07:00
oleibman 4577f615c4 Merge branch 'master' into issue3995 2024-05-09 22:49:11 -07:00
oleibman 148165cbe9 Make New Function Static 2024-05-08 23:37:13 -07:00
oleibman d38b7cb35f Merge pull request #4016 from oleibman/stan9a
Better Definitions for Mixed Parameters and Values Part 1 of Many
2024-05-09 06:28:54 +00:00
oleibman b2befb4426 Correct Wrong-Case Directory Name 2024-05-06 16:50:02 -07:00
oleibman 09c9a310a0 Html Reader Non-UTF8 Charsets
Fix #3995. Fix #866. Fix #1681. Php DOM loadhtml defaults to character set ISO-8859-1, but our data is UTF-8. So Html Reader alters its html so that loadhtml will not misinterpret characters outside the ASCII range. This works for UTF-8, but breaks other charsets. However, loadhtml uses the correct non-default charset when charset is specified in a meta tag, or when the html starts with a BOM. So, it is sufficient for us to alter the non-ASCII characters only when (a) the data does not start with a BOM, and (b) there is no charset tag.

This will allow us to use:
- UTF-8 files or snippets without BOM, with or without charset
- UTF-8 files with BOM (charset should not be specified and will be ignored if it is)
- UTF-16 files with BOM (charset should not be specified and will be ignored if it is)
- all charsets which are ASCII-compatible for 0x00-0x7f when the charset is declared. This applies to ASCII itself, many Windows and Mac charsets, all of ISO-8859, and most CJK and other-language-specific charsets.

We cannot use:
- UTF-16BE or UTF-16LE declared in a meta tag
- UTF-32, with or without a BOM (browser recommendation is to not support UTF-32, and most browsers do not support it)
- unknown (to loadhtml) or non-ASCII-compatible charsets (EBCDIC?)

I will note that the way I detect the `charset` attribute is imperfect (e.g. might find it in text rather than a meta tag). I think we'd need to write a browser to get it perfect. Anyhow, it is about the same as XmlScanner's attempt to find the `encoding` attribute, and, if it's good enough there, it ought to be good enough here.
2024-05-06 16:43:23 -07:00
oleibman 8d5577a3c4 Improved Test for ConvertUOM
Scrutinizer balked at quotes around key 'Unit Name'; no reason not to use 'UnitName' instead.

Having done that, several ConvertUOM tests seemed a little unconvincing. Replaced them with improved versions.
2024-05-05 06:14:28 -07:00
oleibman 64f354eb6e Better Definitions for Mixed Parameters and Values Part 1 of Many
Improve documentation within program by making explicit what types of values are allowed for variables described as "mixed". In order to avoid broken functionality, this is done mainly through doc-blocks. This will get us closer to Phpstan Level 9, but many changes will be needed before we can consider that.

Executable code change is to add 2 new methods to Cell - `getValueString` and `getCalculatedValueString`, which are the same as the methods without the String suffix, except that they always return a string result. These are invoked at several places in the code where it makes sense, in particular by Writer code.
2024-05-05 04:37:46 -07:00
oleibman c56a58358e Merge pull request #4006 from oleibman/issue4004
RTL Text Alignment in Xlsx Comment
2024-05-05 11:17:55 +00:00