Tim Starling
f12db38048
Better detection for old MS Office files
...
* Introduce MSCompoundFileReader, which reads the CFB directory and
detects the file type from well-known names in the root directory
* Do not detect a ZIP file if the EOCDR is not at the end. Other
containers, especially CFB files, may contain ZIP files embedded
within them in the last 64KB, but this is not a security concern
unless the EOCDR is exactly at the end of the file.
Bug: T40432
Change-Id: Id5b1a258ccf3c3c8951e32f6b7a5b1bafe941082
2019-01-23 09:23:17 +11:00
Umherirrender
63d96c15fd
build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
...
Change-Id: I59b59f79bbf3ce4feff3b3a20c1c31bc16370531
2018-02-17 13:29:13 +01:00
Kunal Mehta
75160bdd3b
Use MediaWikiCoversValidator for tests that don't use MediaWikiTestCase
...
Change-Id: I8c4de7e9c72c9969088666007b54c6fd23f6cc13
2018-01-01 08:28:02 +00:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Chad Horohoe
20ef448bc3
Use PHPUnit_Framework_TestCase in a few utils/ tests
...
IPTest, StringUtilsTest and ZipDirectoryReaderTest do not
need the extra overhead
Change-Id: Ic05afb1a3a094a57383d483f4e50bd1ed9a183e2
2014-12-29 20:56:47 -08:00
umherirrender
5dbfd5bf80
Fixed spacing
...
- Removed trailing spaces in comments
- Removed multiple empty lines
- Removed space after object operator
Change-Id: I9fd3256ab490c7cd2034de3fd94e6be6e6d6d8f2
2013-11-21 18:52:25 +00:00
Siebrand Mazeland
8ba4964fac
Move files with tests to reflect the code
...
Change-Id: I7949457fb1ad056dc3db09b43ecf73bc8a61d5a8
2013-11-07 18:03:04 +01:00