Check that the MIME type is allowed before checking that it matches the extension...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 21 Jan 2011 23:35:58 +0000 (23:35 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 21 Jan 2011 23:35:58 +0000 (23:35 +0000)
commit73d5fd73a295ff61ab686e7b137e40d226b00fb7
tree9ac456cf899a2481311f821cf00efd9e841d4ac3
parent6b8cbcdd110d9dd94e6f9d0a052d5464d28d4665
Check that the MIME type is allowed before checking that it matches the extension, and skip the latter check entirely if there is no extension so that the right message (filetype-missing) will be given instead of filetype-mime-mismatch.
RELEASE-NOTES
includes/upload/UploadBase.php