Fix bug where nonprofits with colons in name cause their email receipts to fail

This commit is contained in:
Eric Schultz 2018-06-26 12:48:37 -05:00
parent acae82368b
commit 4fb66fca72

View file

@ -11,7 +11,7 @@ module Format
# Format a nonprofit name into an email <from> header
def self.email_from_np(np_name)
"#{np_name.gsub(',', '')} <#{Settings.mailer.email}>"
"\"#{np_name.gsub(',', '').gsub("\"", '')}\" <#{Settings.mailer.email}>"
end
end
end