From 36adf323b6a765405899dc7cd1fc08feff1ac65d Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 26 Jul 2004 02:50:18 +0000 Subject: * lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape): should escape space. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httputils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/webrick/httputils.rb') diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 16d3c4d56b..79ea9d1f47 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -340,7 +340,7 @@ module WEBrick def _unescape(str, regex) str.gsub(regex){ $1.hex.chr } end module_function :_make_regex, :_escape, :_unescape - UNESCAPED = _make_regex(control+delims+unwise+nonascii) + UNESCAPED = _make_regex(control+space+delims+unwise+nonascii) UNESCAPED_FORM = _make_regex(reserved+control+delims+unwise+nonascii) NONASCII = _make_regex(nonascii) ESCAPED = /%([0-9a-fA-F]{2})/ -- cgit v1.2.3