diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-04 04:42:32 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-04 04:42:32 +0000 |
commit | 9c746e35ad3c265704710934e9dc44b1ff7f741a (patch) | |
tree | 7c5a51f4b5c28b1c4783d4981921b677c367adc6 /test/cgi/test_cgi_core.rb | |
parent | 38ca5cca0095d1a00a280009ab49772ce8749e91 (diff) | |
download | ruby-9c746e35ad3c265704710934e9dc44b1ff7f741a.tar.gz |
Wed Jul 4 08:45:41 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb: fix bug: When query parameter is 'id=123&id',
cgi['id'] => '123' is correct. First parameter is valid.
[Feature #6621]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_core.rb')
-rw-r--r-- | test/cgi/test_cgi_core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb index 23b8891576..0efba195cd 100644 --- a/test/cgi/test_cgi_core.rb +++ b/test/cgi/test_cgi_core.rb @@ -38,7 +38,7 @@ class CGICoreTest < Test::Unit::TestCase def test_cgi_core_params_GET @environ = { 'REQUEST_METHOD' => 'GET', - 'QUERY_STRING' => 'id=123&id=456&id=&str=%40h+%3D%7E+%2F%5E%24%2F', + 'QUERY_STRING' => 'id=123&id=456&id=&id&str=%40h+%3D%7E+%2F%5E%24%2F', 'HTTP_COOKIE' => '_session_id=12345; name1=val1&val2;', 'SERVER_SOFTWARE' => 'Apache 2.2.0', 'SERVER_PROTOCOL' => 'HTTP/1.1', |