Avoid calling raw in plain text email templates
Rails doesn't escape text in text/plain outputs, since before Rails 4. See https://github.com/rails/rails/pull/8235
This commit is contained in:
parent
342e25dd5a
commit
cc1d9592df
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
<%= t '.header', :from_user => @from_user, :subject => @title %>
|
||||
|
||||
==
|
||||
<%= raw @text.to_text %>
|
||||
<%= @text.to_text %>
|
||||
==
|
||||
|
||||
<%= t '.footer', :readurl => @readurl, :commenturl => @commenturl, :replyurl => @replyurl %>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<%= raw t '.hi', :to_user => @to_user %>
|
||||
<%= t '.hi', :to_user => @to_user %>
|
||||
|
||||
<%= raw t '.header', :from_user => @from_user, :subject => @title %>
|
||||
<%= t '.header', :from_user => @from_user, :subject => @title %>
|
||||
|
||||
==
|
||||
<%= raw @text.to_text %>
|
||||
<%= @text.to_text %>
|
||||
==
|
||||
|
||||
<%= word_wrap(t '.footer_html', :readurl => @readurl, :replyurl => @replyurl) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue