Skip to content

Commit

Permalink
Merge pull request from GHSA-cfjv-5498-mph5
Browse files Browse the repository at this point in the history
Prior to this commit, when a translation key indicated that the
translation text was HTML, the value returned by `I18n.translate` would
always be marked as `html_safe`.  However, the value returned by
`I18n.translate` could be an untrusted value directly from
`options[:default]`.

This commit ensures values directly from `options[:default]` are not
marked as `html_safe`.

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
  • Loading branch information
georgeclaghorn and jonathanhefner committed Sep 9, 2020
1 parent 82a91fd commit f187b5f
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f187b5f

Please sign in to comment.