Skip to content

Commit

Permalink
Dont choke on nil bodies
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 19, 2005
1 parent 1f6c871 commit 63e0633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/vendor/tmail/quoting.rb
Expand Up @@ -4,11 +4,11 @@
module TMail module TMail
class Mail class Mail
def unquoted_subject(to_charset = 'utf-8') def unquoted_subject(to_charset = 'utf-8')
Unquoter.unquote_and_convert_to(subject, to_charset) Unquoter.unquote_and_convert_to(subject || "", to_charset)
end end


def unquoted_body(to_charset = 'utf-8') 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 end


def unquoted_body_with_all_parts(to_charset = 'utf-9', &block) def unquoted_body_with_all_parts(to_charset = 'utf-9', &block)
Expand Down

0 comments on commit 63e0633

Please sign in to comment.