1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #883 from ab/404-xss

Potential for reflected XSS in development mode 404 page
This commit is contained in:
Konstantin Haase 2014-09-21 11:15:47 +02:00
commit 4e92d604be

View file

@ -1948,7 +1948,7 @@ module Sinatra
<img src='#{uri "/__sinatra__/404.png"}'>
<div id="c">
Try this:
<pre>#{code}</pre>
<pre>#{Rack::Utils.escape_html(code)}</pre>
</div>
</body>
</html>