ruby/test/webrick
usa ccbe964c1f merge revision(s) 61197: [Backport #14184]
webrick: compile RE correctly for beginning and end match

	Using ^ and $ in regexps means we can accidentally get fooled
	by "%0a" in HTTP request paths being decoded to newline
	characters.  Use \A and \z to match beginning and end-of-string
	respectively, instead.

	Thanks to mame and hsbt for reporting.

	* lib/webrick/httpserver.rb (MountTable#compile):
	  use \A and \z instead of ^ and $
	* lib/webrick/httpserver.rb (MountTable#normalize): use \z instead of $
	* test/webrick/test_httpserver.rb (test_cntrl_in_path): new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@61241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 13:36:50 +00:00
..
.htaccess
test_cgi.rb merge revision(s) 55731: [Backport #12610] 2016-08-01 17:26:35 +00:00
test_cookie.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_do_not_reverse_lookup.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_filehandler.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_htmlutils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_httpauth.rb merge revision(s) 59897: 2017-09-14 11:26:53 +00:00
test_httpproxy.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_httprequest.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_httpresponse.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_httpserver.rb merge revision(s) 61197: [Backport #14184] 2017-12-14 13:36:50 +00:00
test_httputils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_httpversion.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_server.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_ssl_server.rb merge revision(s) 60172,60189,60208,60210,60211: [Backport #14005] 2017-12-14 13:33:54 +00:00
test_utils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
utils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
webrick.cgi merge revision(s) 55731: [Backport #12610] 2016-08-01 17:26:35 +00:00
webrick_long_filename.cgi * test/webrick/webrick.cgi: Don't use debug mode. 2014-11-09 20:58:22 +00:00