wiki.techinc.nl/tests/phpunit/data
Brion Vibber 2e83387666 Relax HTML sniffing checks on image upload
Allows uploaded files to include some HTML tag strings that were
previously forbidden in the first 1k or so of the file:
* <a href
* <img
* <pre
* <table
* <title

They are now allowed as long as the IE MIME type detection heuristic
would not change their types. This should reduce the number of false
positive checks in JPEGs with EXIF data with links.

Also deprecates $wgAllowTitlesInSVG and allows it by default.

This should still protect against malformed PNG attacks on old IE
versions, though false positive checks are conceivable on PNG files
containing comments very close to the beginning of the file.

Adds $wgVerifyMimeTypeIE config var to allow disabling the IE checks
entirely, if desired, but leaves it in place by default. These are
more conservative than the checks that were removed.

Added test cases for the old IE5/6 bug and the particular sort of
JPEG metadata that struck false positives previously.

Bug: T27707
Change-Id: I66642a74fce1a1894cad67d62b0da61020db469a
2019-06-07 14:21:00 -07:00
..
autoloader Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
categoriesrdf Fix handling categorization changes 2018-08-14 00:40:08 +00:00
composer Use SPDX 3.0 license identifier 2018-03-18 18:08:22 +00:00
css
cssmin
db
filecontentshasher
filerepo
gitinfo
import
less resourceloader: Add test case for ResourceLoader::getLessCompiler 2018-05-19 23:06:54 +00:00
localisationcache
media Display translatable images in wiki language on image pages 2019-02-04 15:57:37 -08:00
MSCompoundFileReader Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
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
templates TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
zip