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)
committerAaron Wells <aaronw@catalyst.net.nz>
Wed, 2 Apr 2014 22:19:47 +0000 (11:19 +1300)
commit2de25a00f02a82aeb92e45e527e3d900a5da6b48
tree2c664727a54f79851bf403973dbadb2d3c3375ed
parent7a9b8e994a0e03cc8de6046603c3ee0b02ca3411
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