diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-05-17 19:00:32 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-06-06 11:28:13 +0200 |
commit | d2256300e559e836884fea57210266dae764f13e (patch) | |
tree | 45d9e0fedf3327c537e819888c27f0927c27a1bf /app/uploaders | |
parent | cb564d5831cba9ca8403440a5cbe02d968260da1 (diff) | |
download | gitlab-ce-d2256300e559e836884fea57210266dae764f13e.tar.gz |
hint the allowed image formats on favicon upload
Diffstat (limited to 'app/uploaders')
-rw-r--r-- | app/uploaders/favicon_uploader.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/uploaders/favicon_uploader.rb b/app/uploaders/favicon_uploader.rb index aa4c78da7a6..09afc63a5aa 100644 --- a/app/uploaders/favicon_uploader.rb +++ b/app/uploaders/favicon_uploader.rb @@ -1,4 +1,6 @@ class FaviconUploader < AttachmentUploader + EXTENSION_WHITELIST = %w[png ico].freeze + include CarrierWave::MiniMagick version :favicon_main do @@ -11,7 +13,7 @@ class FaviconUploader < AttachmentUploader end def extension_whitelist - %w[png ico] + EXTENSION_WHITELIST end private |