Skip to content

Commit

Permalink
Fixed xss issue
Browse files Browse the repository at this point in the history
  • Loading branch information
miketanderson committed Jul 1, 2015
1 parent 31d3ef5 commit 89d7cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/events/_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<% @classifications.each do |cls| %>
<% if cls.locked && cls.hotkey %>
<%= drop_down_item "#{cls.name}<span class='shortcut'>#{cls.shortcut}</span>", '#', nil, { :class => 'classification', :"data-classification-id" => cls.id.to_i } %>
<%= drop_down_item "#{sanitize cls.name}<span class='shortcut'>#{cls.shortcut}</span>", '#', nil, { :class => 'classification', :"data-classification-id" => cls.id.to_i } %>
<% else %>
<%= drop_down_item "#{cls.name}", '#', nil, { :class => 'classification', :"data-classification-id" => cls.id.to_i } %>
<%= drop_down_item "#{sanitize cls.name}", '#', nil, { :class => 'classification', :"data-classification-id" => cls.id.to_i } %>
<% end %>
<% end %>

Expand Down

0 comments on commit 89d7cbc

Please sign in to comment.