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:
okriuchykhin 2017-04-05 09:55:39 +02:00 committed by GitHub
commit b781ebd6fe

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