From: Tom Hughes Date: Thu, 5 Apr 2012 13:09:19 +0000 (+0100) Subject: No need for explicit h() escaping in new code X-Git-Tag: live~5624 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6b159c165a6080fc29906e33d0d55cf4ef1a415c No need for explicit h() escaping in new code --- diff --git a/app/views/redactions/_redaction.html.erb b/app/views/redactions/_redaction.html.erb index c9d237418..9974d2bc9 100644 --- a/app/views/redactions/_redaction.html.erb +++ b/app/views/redactions/_redaction.html.erb @@ -1 +1 @@ -
  • <%= link_to h(redaction.title), redaction %>
  • +
  • <%= link_to redaction.title, redaction %>
  • diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index 04df9ade9..162dd6bfe 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -3,7 +3,7 @@

    <%= t 'redaction.show.user' %> - <%= 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}) %>

    <%= t 'redaction.show.description' %>