wiki.techinc.nl/tests/phpunit/data
Tim Starling d8e06a46a8 MimeAnalyzer: fix ZIP parsing failure
unpack() actually returns an array with indexes starting from 1, not
zero, so unpack(...)[0] gives a notice and always returns null. It is
lucky that ZIPs normally have zero-length comments, so this would have
had little impact on file type detection aside from log spam.

Also, add a check to make sure the unpack() will not read beyond
the end of the file. Without this, unpack() could generate a warning.

The bug was introduced by me in f12db38048.

Add tests. The test files were generated by appending an EOCDR signature
and some extra bytes to 1bit-png.png.

Bug: T223728
Change-Id: I6fab63102d1d8eea92cdcce5ab6d1eb747a0a890
2019-07-25 13:40:18 +10:00
..
autoloader
categoriesrdf
composer
css
cssmin
db
filecontentshasher
filerepo
gitinfo
import
less
localisationcache
media MimeAnalyzer: fix ZIP parsing failure 2019-07-25 13:40:18 +10:00
MSCompoundFileReader
parser
registration registration: Allow @-prefixed keys in manifest_version 2 2019-02-12 18:50:14 -08:00
resourceloader ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00
rlfilepath Allow skins/extensions to define custom OOUI themes 2019-07-10 22:08:14 +02:00
templates
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
zip