Permalink
Browse files

1.9 Fix for exception views.

  • Loading branch information...
1 parent 2f1ded3 commit c253d7b2db53dc1049615f470b5ede9b5385fa38 @NZKoz NZKoz committed Dec 2, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/templates/rescues/_trace.erb
@@ -15,12 +15,12 @@
show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';"
hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"}
%>
- <a href="#" onclick="<%= hide %><%= show %>; return false;"><%= name %></a> <%= '|' unless names.last == name %>
+ <a href="#" onclick="<%= hide.join %><%= show %>; return false;"><%= name %></a> <%= '|' unless names.last == name %>
<% end %>
<% traces.each do |name, trace| %>
<div id="<%= name.gsub /\s/, '-' %>" style="display: <%= name == "Application Trace" ? 'block' : 'none' %>;">
- <pre><code><%= trace.join "\n" %></code></pre>
+ <pre><code><%=h trace.join "\n" %></code></pre>
@maxim
maxim Sep 27, 2010

Did anyone else have their backtraces link to their editor (e.g. txmt:// links), and had them escaped due to this 'h'? Reply here if you had such problem.

</div>
<% end %>
</div>

0 comments on commit c253d7b

Please sign in to comment.