diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 14:50:27 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 14:50:27 +0000 |
commit | bbda1a027475bf7ce5e1a9583a7b55d0be71c8fe (patch) | |
tree | 8dafb58b6ec6a18c1516d31ba53036af6128f4ea /ext/Setup.atheos | |
parent | a45622669bb1ff18d3ee9b411128acd839c4263e (diff) | |
download | ruby_2_2.tar.gz |
merge revision(s) 62968:ruby_2_2
webrick: prevent response splitting and header injection
Original patch by tenderlove (with minor style adjustments).
* lib/webrick/httpresponse.rb (send_header): call check_header
(check_header): raise on embedded CRLF in header value
* test/webrick/test_httpresponse.rb
(test_prevent_response_splitting_headers): new test
* (test_prevent_response_splitting_cookie_headers): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@63022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/Setup.atheos')
0 files changed, 0 insertions, 0 deletions