Commit de64c68dfcbb494ef36f5a4284be67cf5a1506cf
1 parent
10437855
Exists in
master
and in
1 other branch
Use the 'htmlentities' gem to decode html entities in notice environment info
Showing
3 changed files
with
7 additions
and
3 deletions
Show diff stats
Gemfile
Gemfile.lock
app/views/notices/_environment.html.haml
1 | 1 | .window |
2 | 2 | %table.environment |
3 | - - notice.env_vars.sort_by {|pair| pair[0]}.each do |pair| | |
3 | + - html_entities = HTMLEntities.new | |
4 | + - notice.env_vars.sort_by {|pair| pair[0]}.each do |key, value| | |
4 | 5 | %tr |
5 | - %th= pair[0] | |
6 | - %td.main= pair[1] | |
6 | + %th= h(html_entities.decode(key)) | |
7 | + %td.main= h(html_entities.decode(value)) | |
8 | + | ... | ... |