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 23:49:45 +0000 (12:49 +1300)
commit459d37af2a0eab3e2bc141fbc724b50781c40a3a
tree43823d6ea92df81b9c09100dc567bbc9aec5c308
parent0adbb72b254759b02488b421279968add264b358
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