Skip to content

Commit

Permalink
Clean up the name
Browse files Browse the repository at this point in the history
  • Loading branch information
r38y committed Dec 1, 2016
1 parent d4dd9c8 commit cbde1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/griddler/postmark/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,7 @@ def attachment_files
end

def create_tempfile(attachment)
filename = attachment[:Name]
filename = attachment[:Name].gsub(/\/|\\/, '_')
tempfile = Tempfile.new(filename, Dir::tmpdir, encoding: 'ascii-8bit')
tempfile.write(Base64.decode64(attachment[:Content]))
tempfile.rewind
Expand Down

0 comments on commit cbde1a6

Please sign in to comment.