ruby/lib/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
..
httpauth Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpservlet merge revision(s) 55731: [Backport #12610] 2016-08-01 17:26:35 +00:00
accesslog.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
cgi.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
compat.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
config.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
cookie.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
htmlutils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpauth.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpproxy.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httprequest.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpresponse.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
https.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpserver.rb merge revision(s) 61197: [Backport #14184] 2017-12-14 13:36:50 +00:00
httpservlet.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpstatus.rb merge revision(s) 59897: 2017-09-14 11:26:53 +00:00
httputils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
httpversion.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
log.rb merge revision(s) 59897: 2017-09-14 11:26:53 +00:00
server.rb merge revision(s) 60172,60189,60208,60210,60211: [Backport #14005] 2017-12-14 13:33:54 +00:00
ssl.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
utils.rb webrick/utils.rb: get rid of thread leak checker 2015-12-19 08:16:54 +00:00
version.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00