]> git.openstreetmap.org Git - rails.git/commitdiff
No need for explicit h() escaping in new code
authorTom Hughes <tom@compton.nu>
Thu, 5 Apr 2012 13:09:19 +0000 (14:09 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 5 Apr 2012 13:09:19 +0000 (14:09 +0100)
app/views/redactions/_redaction.html.erb
app/views/redactions/show.html.erb

index c9d2374187d8ee8fec6c99083bfea34b1fe3c347..9974d2bc9d9b6ab36f1c35fda34f954300643392 100644 (file)
@@ -1 +1 @@
-<li><%= link_to h(redaction.title), redaction %></li>
+<li><%= link_to redaction.title, redaction %></li>
index 04df9ade9b4eec98a46549f2e6c5f57028d66da3..162dd6bfe4617e07bab76e44c6d512134b710d4a 100644 (file)
@@ -3,7 +3,7 @@
 
 <p>
   <b><%= t 'redaction.show.user' %></b>
-  <%= link_to(h(@redaction.user.display_name), {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
+  <%= link_to(@redaction.user.display_name, {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
 </p>
 <p>
   <b><%= t 'redaction.show.description' %></b>