diff --git a/lib/sinatra.rb b/lib/sinatra.rb index e0867436..730cb2ac 100644 --- a/lib/sinatra.rb +++ b/lib/sinatra.rb @@ -44,6 +44,10 @@ module Rack #:nodoc: end + module Utils + extend self + end + end module Sinatra @@ -623,8 +627,8 @@ module Sinatra
-

#{@error.message}

-
#{@error.backtrace.join("\n")}
+

#{Rack::Utils.escape_html(@error.message)}

+
#{Rack::Utils.escape_html(@error.backtrace.join("\n"))}