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:31:56 +0000 (11:31 +1300)
commit6c82f41791198d7449d263d8c0da0ab0e6d33296
tree5be03a798a5321e5fdd051a22ca90ad7772a0538
parentb34d34b9e32e6f962b07ab566eb2e71162ec3031
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