From 2cf8d6be4191512567dc7498d3163627aacd1cf0 Mon Sep 17 00:00:00 2001
From: Malf Furious <m@lfurio.us>
Date: Wed, 31 Oct 2018 21:23:27 -0400
Subject: Fix bug in image support

Adds 'image/x-ms-bmp' as an allowed mimetype for images, and is
equivalent to 'image/bmp'.  The image module is also updated to expect
this new type.

I found an image of mine that, when uploaded, PHP thought was
'image/bmp', so it was allowed.  However, when cropping, PHP though it
was 'image/x-ms-bmp' and failed to lookup a loading/writing function.

Signed-off-by: Malf Furious <m@lfurio.us>
---
 app/class/obj.class.php | 1 +
 1 file changed, 1 insertion(+)

(limited to 'app/class/obj.class.php')

diff --git a/app/class/obj.class.php b/app/class/obj.class.php
index 81a0a27..353d617 100644
--- a/app/class/obj.class.php
+++ b/app/class/obj.class.php
@@ -32,6 +32,7 @@ class obj extends table
         "image/png",
         "image/gif",
         "image/bmp",
+        "image/x-ms-bmp",
     );
 
     /*
-- 
cgit v1.2.3