Truncate incoming email subject lines to 255 characters. #5698
Contributed by Jan git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3801 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
c5863c0ad0
commit
4083e7e622
3 files changed
+64
-1
No files matched your search
@@ -134,7 +134,7 @@ class MailHandler < ActionMailer::Base
|
||||
if status && issue.new_statuses_allowed_to(user).include?(status)
|
||||
issue.status = status
|
||||
end
|
||||
issue.subject = email.subject.chomp
|
||||
issue.subject = email.subject.chomp[0,255]
|
||||
if issue.subject.blank?
|
||||
issue.subject = '(no subject)'
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user