Skip to content

Commit

Permalink
prevent truncate from encoding special characters #226
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperionel committed Aug 2, 2016
1 parent fa3a978 commit 94c4f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/grouped_issue_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def notify_subscriber(group, user, sender, message)
def error_occurred(issue, member)
@issue = issue
@member = member
mail to: @member.user.email, subject: "[#{@issue.website.title}] #{truncate(@issue.message, length: 60)}"
mail to: @member.user.email, subject: "[#{@issue.website.title}] #{truncate(@issue.message, length: 60, escape: false)}"
end

def more_than_10_errors(member)
Expand Down

0 comments on commit 94c4f3f

Please sign in to comment.