HTML.escape render_500
This commit is contained in:
parent
878c70e0d9
commit
fa4573dcf9
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ end
|
||||||
|
|
||||||
def render_500(context, backtrace, verbosity)
|
def render_500(context, backtrace, verbosity)
|
||||||
message = if verbosity
|
message = if verbosity
|
||||||
"<pre>#{backtrace}</pre>"
|
"<pre><%= backtrace %></pre>"
|
||||||
else
|
else
|
||||||
"<p>Something wrong with the server :(</p>"
|
"<p>Something wrong with the server :(</p>"
|
||||||
end
|
end
|
||||||
|
@ -42,7 +42,7 @@ def render_500(context, backtrace, verbosity)
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Kemal has encountered an error. (500)</h2>
|
<h2>Kemal has encountered an error. (500)</h2>
|
||||||
#{message}
|
<%= HTML.escape(message) %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
|
|
Loading…
Reference in a new issue