Files with a mime type that does not match the extension are now properly thumbnailed...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 6 Feb 2011 19:20:57 +0000 (19:20 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 6 Feb 2011 19:20:57 +0000 (19:20 +0000)
commita6617a4959af1af2680e1bd4244b7402de4eeba8
treea36404c8000b29e04a3ef875b144096a40bdac9b
parent3aec1c90bd0303ae4b9f01dfbf07eb9ac8a48e2e
Files with a mime type that does not match the extension are now properly thumbnailed. Partial bug fix to bug 26661.
MediaHandler::getThumbType now checks if the extension and the mime type match. If they do not, a new extension is generated for the mime type. The rest of the thumbnailing code should then magically work.
Bonus: this also works with file names without extension, so might be a step closer to extension-less files.
RELEASE-NOTES
includes/media/Generic.php