From 58b2ac9392d2677c4becd317c89844d3e7ef28e6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 11 Jan 2021 16:02:46 +0100 Subject: [PATCH] Support for WebP images (#3861) * Support for WebP images * Inconsistent quote style --- com.woltlab.wcf/userGroupOption.xml | 6 +++++- wcfsetup/install/files/acp/templates/systemCheck.tpl | 3 +++ .../install/files/js/3rdParty/redactor2/redactor.js | 2 +- wcfsetup/install/files/js/WCF.Attachment.js | 4 ++-- wcfsetup/install/files/js/WCF.js | 4 ++++ .../install/files/js/WoltLabSuite/Core/Upload.js | 3 +++ .../files/lib/acp/page/SystemCheckPage.class.php | 6 +++++- .../files/lib/data/style/StyleEditor.class.php | 4 ++-- .../lib/data/user/avatar/UserAvatarAction.class.php | 2 +- .../install/files/lib/page/AttachmentPage.class.php | 2 +- wcfsetup/install/files/lib/page/MediaPage.class.php | 3 ++- .../lib/system/file/upload/UploadHandler.class.php | 2 +- .../system/image/adapter/GDImageAdapter.class.php | 12 +++++++++++- ...rCoverPhotoUploadFileValidationStrategy.class.php | 2 +- wcfsetup/install/files/lib/util/FileUtil.class.php | 2 +- wcfsetup/install/files/lib/util/ImageUtil.class.php | 4 +++- .../install/files/ts/WoltLabSuite/Core/Upload.ts | 3 +++ wcfsetup/install/lang/de.xml | 6 +++--- wcfsetup/install/lang/en.xml | 6 +++--- 19 files changed, 55 insertions(+), 21 deletions(-) diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index db4b497396..79a68163a5 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -572,6 +572,7 @@ jpg jpeg png +webp bmp zip txt @@ -624,6 +625,7 @@ pdf jpg jpeg png +webp bmp zip txt @@ -685,6 +687,7 @@ pdf jpg jpeg png +webp bmp * module_user_signature @@ -811,7 +814,8 @@ bmp gif jpg jpeg -png +png +webp 1