Permalink
Browse files

Fix escaping of listed track codes on admin tracks page

  • Loading branch information...
1 parent 0cfd1a1 commit cbac54cc1b7cc44c740992a7ea09e2707b4503fc Matthew Landauer committed Feb 11, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/views/admin_track/_some_tracks.rhtml
@@ -13,11 +13,11 @@
<a href="#track_<%=track_thing.id%>" data-toggle="collapse" data-parent="requests"><i class="icon-chevron-right"></i></a>
<%=track_thing.id%>:
<% if track_thing.public_body_id %>
- <%= link_to "<code>#{h track_thing.track_query}</code>", main_url(public_body_url(track_thing.public_body)) %>
+ <%= link_to "<code>#{h track_thing.track_query}</code>".html_safe, main_url(public_body_url(track_thing.public_body)) %>
<% elsif track_thing.info_request_id %>
- <%= link_to "<code>#{h track_thing.track_query}</code>", main_url(request_url(track_thing.info_request)) %>
+ <%= link_to "<code>#{h track_thing.track_query}</code>".html_safe, main_url(request_url(track_thing.info_request)) %>
<% elsif track_thing.tracked_user_id %>
- <%= link_to "<code>#{h track_thing.track_query}</code>", main_url(user_url(track_thing.tracked_user)) %>
+ <%= link_to "<code>#{h track_thing.track_query}</code>".html_safe, main_url(user_url(track_thing.tracked_user)) %>
<% else %>
<code><%=h track_thing.track_query%></code>
<% end %>

0 comments on commit cbac54c

Please sign in to comment.