1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/lib
Ryan Tomayko 327c6ece36 Fix that built-in error message response not HTML escaped.
Stack traces and Object#inspect output lots of less-than signs
that need escaping.

There's probably a better way to do this. My first iteration called
CGI::escapeHTML and then I noticed that Rack includes a nice Utils module with
various escaping methods so I figured that would be a better fit for Sinatra.
Unfortunately, these methods don't seem to be exposed anywhere (that I could
find) so I extended the Rack::Utils module with itself so that messages could be
sent directly to the module.
2008-03-08 07:21:43 -05:00
..
sinatra/test Errors when testing 2008-01-17 12:09:19 -08:00
sinatra.rb Fix that built-in error message response not HTML escaped. 2008-03-08 07:21:43 -05:00