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/branches/ruby_1_6@1805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3ee749b173
commit
b7f167d9a7
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 14:04:04 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Oct 30 14:04:04 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_f_eval): can't modify untainted binding.
|
* eval.c (rb_f_eval): can't modify untainted binding.
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue