Prefer fileinfo detected mimetype over browser-supplied mimetype (Bug #1249858)
authorRobert Lyon <robertl@catalyst.net.nz>
Wed, 2 Apr 2014 20:46:30 +0000 (09:46 +1300)
committerRobert Lyon <robertl@catalyst.net.nz>
Wed, 2 Apr 2014 22:44:35 +0000 (11:44 +1300)
commit4284106c67bbbea9cfb6858f7a44e21eacb1e512
tree1ef1c2ef84f6d35fd1ab4a2869b28553c4968123
parent8e3d142534323d98a754c355bf9913969dd241b6
Prefer fileinfo detected mimetype over browser-supplied mimetype (Bug #1249858)

Browsers can get the their mimetypes for certain things mixed up if
they visit badly written websites. So we should trust magicdb over
what the browser tells us.

Change-Id: I477580d55a70f7e2d03385897a6ec02166506908
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
htdocs/artefact/file/lib.php