Whitelist application/zip file type in paperclip for some .xlsx files [SCI-1166]

This commit is contained in:
Oleksii Kriuchykhin 2017-04-04 10:51:54 +02:00
parent 317739af1e
commit ba4dbe49f8

View file

@ -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