Skip to content

Commit

Permalink
Escape the message of an exception in debug_exceptions to avoid bad r…
Browse files Browse the repository at this point in the history
…endering
  • Loading branch information
Adrien Siami committed Aug 21, 2013
1 parent bfd7e8a commit 7fd4752
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -8,7 +8,7 @@
</header>

<div id="container">
<h2><%= @exception.message %></h2>
<h2><%= h @exception.message %></h2>

<%= render template: "rescues/_source" %>
<%= render template: "rescues/_trace" %>
Expand Down
Expand Up @@ -3,5 +3,5 @@
</header>

<div id="container">
<h2><%= @exception.message %></h2>
<h2><%= h @exception.message %></h2>
</div>
Expand Up @@ -2,7 +2,7 @@
<h1>Routing Error</h1>
</header>
<div id="container">
<h2><%= @exception.message %></h2>
<h2><%= h @exception.message %></h2>
<% unless @exception.failures.empty? %>
<p>
<h2>Failure reasons:</h2>
Expand Down
Expand Up @@ -10,7 +10,7 @@
<p>
Showing <i><%= @exception.file_name %></i> where line <b>#<%= @exception.line_number %></b> raised:
</p>
<pre><code><%= @exception.message %></code></pre>
<pre><code><%= h @exception.message %></code></pre>

<div class="source">
<div class="info">
Expand Down
Expand Up @@ -2,5 +2,5 @@
<h1>Unknown action</h1>
</header>
<div id="container">
<h2><%= @exception.message %></h2>
<h2><%= h @exception.message %></h2>
</div>

0 comments on commit 7fd4752

Please sign in to comment.