Steps to reproduce:
- Use importImages.php to import an exe file.
Expected behaviour:
- MediaWiki reports a mime type of application/octet-stream [ application/vnd.microsoft.portable-executable would be better, but current code does octet-stream]
Actual behaviour:
- MediaWiki reports unknown/unknown.
MediaWiki has code that looks for both .exe extension and MZ magic numbers. It should be able to detect this (The detection is also used as part of the blacklist, so that presumably isn't working either for these file types)