Commit 110ab113 by Daniel Mendler

Merge pull request #26 from gsar/master

avoid loose matching on msoffice formats in overlay.rb
parents 4578852c e2aac26e
# Extra magic
[['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0..5000, 'ppt/']]],
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0..5000, 'xl/']]],
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0..5000, 'word/']]]].each do |magic|
[['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..5000, 'ppt/']]]]]]],
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..5000, 'xl/']]]]]]],
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..5000, 'word/']]]]]]]].each do |magic|
MimeMagic.add(magic[0], magic: magic[1])
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment