From d07d18a0cb084e3afb3864a10ef5b43e5855b736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 31 Oct 2020 19:38:03 +0100 Subject: [PATCH] Hardcode acceptable attachment extensions to common images --- .../attachment/MessageAttachmentObjectType.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/files/lib/system/attachment/MessageAttachmentObjectType.class.php b/files/lib/system/attachment/MessageAttachmentObjectType.class.php index b5a9f16..bd5aadb 100644 --- a/files/lib/system/attachment/MessageAttachmentObjectType.class.php +++ b/files/lib/system/attachment/MessageAttachmentObjectType.class.php @@ -79,6 +79,17 @@ public function getMaxCount() { return 1; } + /** + * @inheritDoc + */ + public function getAllowedExtensions() { + return [ 'png' + , 'gif' + , 'jpg' + , 'jpeg' + ]; + } + /** * @inheritDoc */