Sanitize translations instead of using _html
Using the `_html` suffix in an i18n key is the same as using `html_safe` on it, which means that translation could potentially be used for XSS attacks.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<% provide :title do %><%= t("devise_views.confirmations.show.title") %><% end %>
|
||||
<h1 class="text-center"><%= t("devise_views.confirmations.show.title") %></h1>
|
||||
|
||||
<p><%= t("devise_views.confirmations.show.instructions_html", email: resource.email) %></p>
|
||||
<p><%= sanitize(t("devise_views.confirmations.show.instructions", email: resource.email)) %></p>
|
||||
|
||||
<%= form_for(resource,
|
||||
as: resource_name,
|
||||
|
||||
Reference in New Issue
Block a user