Permalink
Browse files

All output is raw

  • Loading branch information...
1 parent 5e54d13 commit d68b14b0f2fc6c3cdeb81374bdf7d5b53edec809 @josh josh committed Jan 22, 2010
@@ -1 +1 @@
-<%= @backtrace.join "\n" %>
+<%=raw @backtrace.join "\n" %>
@@ -1,8 +1,8 @@
<% filtered_env = @request.filtered_env -%>
<% max = filtered_env.keys.max { |a, b| a.length <=> b.length } -%>
<% filtered_env.keys.sort.each do |key| -%>
-* <%= "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
+* <%=raw "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
<% end -%>
-* Process: <%= $$ %>
-* Server : <%= `hostname -s`.chomp %>
+* Process: <%=raw $$ %>
+* Server : <%=raw `hostname -s`.chomp %>
@@ -1,4 +1,4 @@
-* URL : <%= @request.url %>
-* IP address: <%= @request.remote_ip %>
-* Parameters: <%= @request.fitered_params.inspect %>
-* Rails root: <%= Rails.root %>
+* URL : <%=raw @request.url %>
+* IP address: <%=raw @request.remote_ip %>
+* Parameters: <%=raw @request.fitered_params.inspect %>
+* Rails root: <%=raw Rails.root %>
@@ -1,2 +1,2 @@
-* session id: <%= @request.session['session_id'].inspect %>
-* data: <%= PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip %>
+* session id: <%=raw @request.session['session_id'].inspect.html_safe %>
+* data: <%=raw PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip.html_safe %>
@@ -1,3 +1,3 @@
-------------------------------
-<%= title.to_s.humanize %>:
+<%=raw title.to_s.humanize %>:
-------------------------------
@@ -1,9 +1,9 @@
A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>:
- <%= @exception.message %>
- <%= @backtrace.first %>
+ <%=raw @exception.message %>
+ <%=raw @backtrace.first %>
-<%= @sections.map { |section|
+<%=raw @sections.map { |section|
summary = render(section).strip
unless summary.blank?
title = render("title", :locals => { :title => section }).strip

0 comments on commit d68b14b

Please sign in to comment.