summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-07 17:27:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-07 17:27:56 +0000
commit63c72fe87f901a6a9f6ff1981a4e93a366be05f1 (patch)
tree7b4df1c79a662ff57c89d58a1720f7687d470856 /app
parent006337fb0e8c45813031a0ced14746733692a173 (diff)
downloadredmine-63c72fe87f901a6a9f6ff1981a4e93a366be05f1.tar.gz
redmine-63c72fe87f901a6a9f6ff1981a4e93a366be05f1.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/models/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index bbb71e3c1..f8e60b6b5 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -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)