]> source.dussan.org Git - redmine.git/commitdiff
Fixed: broken subject when submitting issue via email written in japanese (Patch...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Nov 2008 17:27:56 +0000 (17:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Nov 2008 17:27:56 +0000 (17:27 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1990 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index bbb71e3c1086c08db1bad0fbfd71073528f57664..f8e60b6b59edff03af7b6fe58817c747cfe36f69 100644 (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)