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 | 41d2099e9646b4ad0c191083ec9da05461eb006a (patch) | |
tree | 91ef91af219a4f22c9839943687a03c422d0857d /lib/webrick | |
parent | 9480c6b7206cbbddcfac5996b9efd249eb6bb0b4 (diff) | |
download | ruby-41d2099e9646b4ad0c191083ec9da05461eb006a.tar.gz |
* lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
discard if key=val pair is empty. patch from Gary Wright.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-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 67bc281c5d..2a65552f20 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) |