diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-26 02:50:18 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-26 02:50:18 +0000 |
| commit | a41a3fa1d9fdad52787f0a3d325d6b05704ff2b5 (patch) | |
| tree | f346d3accd9bacd494966a0c248801b63a8e9dcb /lib | |
| parent | 4283dac692d56f4b0bf45146cf43190bbc72ff45 (diff) | |
| download | ruby-a41a3fa1d9fdad52787f0a3d325d6b05704ff2b5.tar.gz ruby-a41a3fa1d9fdad52787f0a3d325d6b05704ff2b5.tar.xz ruby-a41a3fa1d9fdad52787f0a3d325d6b05704ff2b5.zip | |
* lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape): should
escape space.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/webrick/httputils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 16d3c4d56..79ea9d1f4 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})/ |
