mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb: CGI::Cookie::parse(): Ignore duplicate keys caused by
Netscape bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d321e3fd4
commit
4c9362b74f
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Oct 31 02:44:06 2001 Wakou Aoyama <wakou@fsinet.or.jp>
|
||||||
|
|
||||||
|
* lib/cgi.rb: CGI::Cookie::parse(): Ignore duplicate keys caused by
|
||||||
|
Netscape bug.
|
||||||
|
|
||||||
Tue Oct 30 18:21:51 2001 Usaku Nakamura <usa@ruby-lang.org>
|
Tue Oct 30 18:21:51 2001 Usaku Nakamura <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/mkexports.rb: follow the change of rb_io_puts().
|
* win32/mkexports.rb: follow the change of rb_io_puts().
|
||||||
|
|
|
@ -698,9 +698,7 @@ convert string charset, and set language to "ja".
|
||||||
name = CGI::unescape(name)
|
name = CGI::unescape(name)
|
||||||
values ||= ""
|
values ||= ""
|
||||||
values = values.split('&').collect{|v| CGI::unescape(v) }
|
values = values.split('&').collect{|v| CGI::unescape(v) }
|
||||||
if cookies.has_key?(name)
|
unless cookies.has_key?(name)
|
||||||
cookies[name].value.push(*values)
|
|
||||||
else
|
|
||||||
cookies[name] = Cookie::new({ "name" => name, "value" => values })
|
cookies[name] = Cookie::new({ "name" => name, "value" => values })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue