diff options
author | Peter Wilson <peterwilsoncc@git.wordpress.org> | 2024-02-05 22:21:35 +0000 |
---|---|---|
committer | Peter Wilson <peterwilsoncc@git.wordpress.org> | 2024-02-05 22:21:35 +0000 |
commit | 2ac96bcd07ca615216cedbd855d641fca65853e5 (patch) | |
tree | 21f291bceb4f7fb8aad86441ac8cda2134574ea4 /tests/phpunit/data/filesystem/archive-macos.zip | |
parent | 1950da3f17629872086c1763058f0cb59db58b10 (diff) | |
download | wordpress-2ac96bcd07ca615216cedbd855d641fca65853e5.tar.gz wordpress-2ac96bcd07ca615216cedbd855d641fca65853e5.zip |
Upload: Fallback to `PclZip` to validate ZIP file uploads.
`ZipArchive` can fail to validate ZIP files correctly and report valid files as invalid. This introduces a fallback to `PclZip` to check validity of files if `ZipArchive` fails them.
This introduces the new function `wp_zip_file_is_valid()` to validate archives.
Follow up to [57388].
Props audunmb, azaozz, britner, cdevroe, colorful-tones, costdev, courane01, endymion00, feastdesignco, halounsbury, jeffpaul, johnbillion, jorbin, jsandtro, karinclimber, kevincoleman, koesper, maartenbelmans, mathewemoore, melcarthus, mujuonly, nerdpressteam, olegfuture, otto42, peterwilsoncc, room34, sayful, schutzsmith, stephencronin, svitlana41319, swissspidy, tnolte, tobiasbg, vikram6, welaunchio.
Fixes #60398.
git-svn-id: https://develop.svn.wordpress.org/trunk@57537 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/data/filesystem/archive-macos.zip')
-rw-r--r-- | tests/phpunit/data/filesystem/archive-macos.zip | bin | 0 -> 2090 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/phpunit/data/filesystem/archive-macos.zip b/tests/phpunit/data/filesystem/archive-macos.zip Binary files differnew file mode 100644 index 0000000000..a5493f9fa0 --- /dev/null +++ b/tests/phpunit/data/filesystem/archive-macos.zip |