Sanitize dashboard action before displaying it

We were using `<%==`, which is the same as using `raw`.

Note ERB Lint doesn't warn us of this usage. Brakeman does warn us,
though.
This commit is contained in:
Javi Martín
2019-10-06 04:23:11 +02:00
parent a20c0f078d
commit 391f58eb90
2 changed files with 11 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<div class="row expanded">
<div class="small-12 medium-8 column">
<%== dashboard_action.description %>
<%= WYSIWYGSanitizer.new.sanitize(dashboard_action.description) %>
<%= render "dashboard/form" %>
</div>