Skip to content
Browse files

Dont choke on nil bodies

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1f6c871 commit 63e063308b088b8eaef9730903810e54409058f5 @dhh dhh committed Mar 19, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionmailer/lib/action_mailer/vendor/tmail/quoting.rb
View
4 actionmailer/lib/action_mailer/vendor/tmail/quoting.rb
@@ -4,11 +4,11 @@
module TMail
class Mail
def unquoted_subject(to_charset = 'utf-8')
- Unquoter.unquote_and_convert_to(subject, to_charset)
+ Unquoter.unquote_and_convert_to(subject || "", to_charset)
end
def unquoted_body(to_charset = 'utf-8')
- Unquoter.unquote_and_convert_to(body, to_charset, header["content-type"]["charset"])
+ Unquoter.unquote_and_convert_to(body || "", to_charset, header["content-type"]["charset"])
end
def unquoted_body_with_all_parts(to_charset = 'utf-9', &block)

0 comments on commit 63e0633

Please sign in to comment.
Something went wrong with that request. Please try again.