Commit 45e5b9ad authored by marutosijp's avatar marutosijp

MailHandler: Don't use String#respond_to?(:force_encoding) (#18047)

Contributed by Felix Schäfer.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c4401b0e
......@@ -421,7 +421,7 @@ class MailHandler < ActionMailer::Base
@plain_text_body = do |p|
body_charset = p.charset.respond_to?(:force_encoding) ?
body_charset = Mail::RubyVer.respond_to?(:pick_encoding) ?
Mail::RubyVer.pick_encoding(p.charset).to_s : p.charset
Redmine::CodesetUtil.to_utf8(p.body.decoded, body_charset)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment