From 87b3389fe740da78dc44be46fcc634f5fa619409 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sat, 25 Jun 2005 08:16:16 +0000 Subject: * 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/trunk@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 ++++++- lib/webrick/httputils.rb | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 992689bbf..060d78d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 25 17:12:20 2005 GOTOU Yuuzou + + * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should + discard if key=val pair is empty. patch from Gary Wright. + Sat Jun 25 15:49:18 2005 Nobuyoshi Nakada * enum.c (enum_min, enum_max, enum_min_by, enum_max_by): do not ignore @@ -79,7 +84,7 @@ Mon Jun 20 01:26:49 2005 GOTOU Yuuzou * ext/openssl/openssl_missing.c, ext/openssl/ossl.h, ext/openssl/ossl_asn1.c, ext/openssl/ossl_bio.c, ext/openssl/ossl_pkcs12.h, ext/openssl/ossl_x509req.c: avoid - compiler warnings. suggested by Mical Rokos. + compiler warnings. suggested by Michal Rokos. Sun Jun 19 17:22:02 CEST 2005 Michael Neumann diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 67bc281c5..2a65552f2 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) -- cgit