summaryrefslogtreecommitdiff
path: root/app/uploaders/favicon_uploader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/uploaders/favicon_uploader.rb')
-rw-r--r--app/uploaders/favicon_uploader.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/uploaders/favicon_uploader.rb b/app/uploaders/favicon_uploader.rb
index a0b275b56a9..f393fdf0d84 100644
--- a/app/uploaders/favicon_uploader.rb
+++ b/app/uploaders/favicon_uploader.rb
@@ -1,8 +1,12 @@
# frozen_string_literal: true
class FaviconUploader < AttachmentUploader
+ include UploadTypeCheck::Concern
+
EXTENSION_WHITELIST = %w[png ico].freeze
+ check_upload_type extensions: EXTENSION_WHITELIST
+
def extension_whitelist
EXTENSION_WHITELIST
end