Skip to content

Commit d68b14b

Browse files
committed
All output is raw
1 parent 5e54d13 commit d68b14b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<%= @backtrace.join "\n" %>
1+
<%=raw @backtrace.join "\n" %>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<% filtered_env = @request.filtered_env -%>
22
<% max = filtered_env.keys.max { |a, b| a.length <=> b.length } -%>
33
<% filtered_env.keys.sort.each do |key| -%>
4-
* <%= "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
4+
* <%=raw "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
55
<% end -%>
66

7-
* Process: <%= $$ %>
8-
* Server : <%= `hostname -s`.chomp %>
7+
* Process: <%=raw $$ %>
8+
* Server : <%=raw `hostname -s`.chomp %>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* URL : <%= @request.url %>
2-
* IP address: <%= @request.remote_ip %>
3-
* Parameters: <%= @request.fitered_params.inspect %>
4-
* Rails root: <%= Rails.root %>
1+
* URL : <%=raw @request.url %>
2+
* IP address: <%=raw @request.remote_ip %>
3+
* Parameters: <%=raw @request.fitered_params.inspect %>
4+
* Rails root: <%=raw Rails.root %>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* session id: <%= @request.session['session_id'].inspect %>
2-
* data: <%= PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip %>
1+
* session id: <%=raw @request.session['session_id'].inspect.html_safe %>
2+
* data: <%=raw PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip.html_safe %>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-------------------------------
2-
<%= title.to_s.humanize %>:
2+
<%=raw title.to_s.humanize %>:
33
-------------------------------

lib/exception_notifier/views/exception_notifier/exception_notification.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>:
22

3-
<%= @exception.message %>
4-
<%= @backtrace.first %>
3+
<%=raw @exception.message %>
4+
<%=raw @backtrace.first %>
55

6-
<%= @sections.map { |section|
6+
<%=raw @sections.map { |section|
77
summary = render(section).strip
88
unless summary.blank?
99
title = render("title", :locals => { :title => section }).strip

0 commit comments

Comments
 (0)