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:
commit
4e92d604be
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue