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:
@@ -36,9 +36,9 @@
|
||||
<div class="markdown-editor clear">
|
||||
<div class="small-12 medium-8 column fullscreen-container">
|
||||
<div class="markdown-editor-header truncate">
|
||||
<%= t("admin.legislation.draft_versions.form.title_html",
|
||||
<%= sanitize(t("admin.legislation.draft_versions.form.title",
|
||||
draft_version_title: @draft_version.title,
|
||||
process_title: @process.title) %>
|
||||
process_title: @process.title)) %>
|
||||
</div>
|
||||
|
||||
<div class="markdown-editor-buttons">
|
||||
|
||||
Reference in New Issue
Block a user