Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.9 Fix for exception views.

  • Loading branch information...
commit c253d7b2db53dc1049615f470b5ede9b5385fa38 1 parent 2f1ded3
@NZKoz NZKoz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/templates/rescues/_trace.erb
View
4 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 added a note

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
</div>
<% end %>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.