]> git.openstreetmap.org Git - rails.git/commitdiff
Fix bug introduced in r14610 (.downcase in wrong place)
authorThomas Wood <grand.edgemaster@gmail.com>
Mon, 20 Apr 2009 19:13:52 +0000 (19:13 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Mon, 20 Apr 2009 19:13:52 +0000 (19:13 +0000)
No need to sanitise type of relation member, since will only be a Node, Way, or Relation and not user-provided.

app/views/browse/_relation_member.rhtml

index 8be58d16f67dfb998c8e6cfd900ce4dafd616f04..fe484c3cd8820255304ecbdcfa6b3b1812a7078a 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
   <td>
 <tr>
   <td>
-    <%= h(relation_member.member_type.capitalize) %>
-    <%= link_to relation_member.member_id.to_s, :action => relation_member.downcase.member_type, :id => relation_member.member_id %>
+    <%= relation_member.member_type.capitalize %>
+    <%= link_to relation_member.member_id.to_s, :action => relation_member.member_type.downcase, :id => relation_member.member_id %>
     <% unless relation_member.member_role.blank? %>
       as
       <%= h(relation_member.member_role) %>
     <% unless relation_member.member_role.blank? %>
       as
       <%= h(relation_member.member_role) %>