diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-25 08:16:16 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-25 08:16:16 +0000 |
| commit | fe0e916701d142341e0ca6ae71b64ad871b3c1bb (patch) | |
| tree | c8aae098e83fce43b952d7c6b6eda4598c8cfd70 /lib | |
| parent | 8d333716be6ce8e4a75fa5980e0ac7da43a34a50 (diff) | |
| download | ruby-fe0e916701d142341e0ca6ae71b64ad871b3c1bb.tar.gz ruby-fe0e916701d142341e0ca6ae71b64ad871b3c1bb.tar.xz ruby-fe0e916701d142341e0ca6ae71b64ad871b3c1bb.zip | |
* lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
discard if key=val pair is empty. patch from Gary Wright.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/webrick/httputils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 67bc281c5..c57af2c86 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -294,6 +294,7 @@ module WEBrick query = Hash.new if str str.split(/[&;]/).each{|x| + next if x.empty? key, val = x.split(/=/,2) key = unescape_form(key) val = unescape_form(val.to_s) |
