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:
@@ -34,7 +34,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" rowspan="2"><%= t("stats.budgets.heading") %></th>
|
||||
<th scope="col" rowspan="2"><%= t("stats.budgets.investments_sent_html") %></th>
|
||||
<th scope="col" rowspan="2"><%= sanitize(t("stats.budgets.investments_sent")) %></th>
|
||||
|
||||
<% stats.all_phases.each do |phase| %>
|
||||
<th scope="col" colspan="3">
|
||||
|
||||
Reference in New Issue
Block a user