From fbb3e8ec136c08e3ff4aab5981a2297771728836 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Sat, 5 Jan 2013 00:50:06 +0900 Subject: Remove unnecessary `ERB::Util::h` It is automatically applied when strings is unsafe for html. --- .../action_dispatch/middleware/templates/rescues/diagnostics.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb') diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb index 1c6b5010a3..57a2940802 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb @@ -1,14 +1,14 @@

- <%=h @exception.class.to_s %> + <%= @exception.class.to_s %> <% if @request.parameters['controller'] %> - in <%=h @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %> + in <%= @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%= @request.parameters['action'] %><% end %> <% end %>

-

<%=h @exception.message %>

+

<%= @exception.message %>

<%= render template: "rescues/_source" %> <%= render template: "rescues/_trace" %> -- cgit v1.2.3