mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Merge pull request #536 from okriuchykhin/ok_SCI_1166
Whitelist application/zip file type in paperclip for some .xlsx files [SCI-1166]
This commit is contained in:
commit
b781ebd6fe
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ module Paperclip
|
|||
)) ||
|
||||
# Spreadsheet application
|
||||
(Set[content_type, content_types_from_name].subset? Set.new %w(
|
||||
application/zip
|
||||
application/vnd.ms-office
|
||||
application/vnd.ms-excel
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
|
|
Loading…
Reference in a new issue