mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791]
* lib/webrick/cookie.rb (parse): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0137ba8cd
commit
5f33c6b0f5
6 changed files with 30 additions and 4 deletions
|
@ -113,7 +113,7 @@ module WEBrick
|
|||
ret = []
|
||||
cookie = nil
|
||||
ver = 0
|
||||
str.split(/[;,]\s+/).each{|x|
|
||||
str.split(/;\s+/).each{|x|
|
||||
key, val = x.split(/=/,2)
|
||||
val = val ? HTTPUtils::dequote(val) : ""
|
||||
case key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue