Fixed: broken subject when submitting issue via email written in japanese (Patch #2059 by Go MAEDA).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1990 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-11-07 17:27:56 +00:00
parent 006337fb0e
commit 63c72fe87f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class MailHandler < ActionMailer::Base
# check permission
raise UnauthorizedAction unless user.allowed_to?(:add_issues, project)
issue = Issue.new(:author => user, :project => project, :tracker => tracker, :category => category, :priority => priority, :status => status)
issue.subject = email.subject.chomp
issue.subject = email.subject.chomp.toutf8
issue.description = email.plain_text_body.chomp
issue.save!
add_attachments(issue)