Fix bug where nonprofits with colons in name cause their email receipts to fail
This commit is contained in:
parent
acae82368b
commit
4fb66fca72
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module Format
|
||||||
|
|
||||||
# Format a nonprofit name into an email <from> header
|
# Format a nonprofit name into an email <from> header
|
||||||
def self.email_from_np(np_name)
|
def self.email_from_np(np_name)
|
||||||
"#{np_name.gsub(',', '')} <#{Settings.mailer.email}>"
|
"\"#{np_name.gsub(',', '').gsub("\"", '')}\" <#{Settings.mailer.email}>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue