Actions
Bug #7364
closedCGI::Cookie.parse can't deal with cookie options
Description
Reproducing steps; reproducing code is needed:
p CGI::Cookie::parse("ASPSESSIONIDSCDRSRTS=HHALOHOBJGJMLPIANNLDOMCJ; path=/")
What you expected:
Cookie hash with cookie name as key and cookie object as value. The 'path' option within the cookie object, not as a cookie name.
What happened (If you have a error log, don't omit it.):
I got a hash with the 'path' option as a cookie name.
{"ASPSESSIONIDSCDRSRTS"=>["HHALOHOBJGJMLPIANNLDOMCJ"], "path"=>["/"]}
Updated by mame (Yusuke Endoh) about 12 years ago
- Status changed from Open to Assigned
- Assignee set to xibbar (Takeyuki FUJIOKA)
- Target version changed from 1.9.3 to 2.0.0
I guess that CGI::Cookie::parse is a method for parsing ENV["HTTP_COOKIE"], not http response.
Anyway I'm assigning to xibbar, cgi.rb maintainer.
--
Yusuke Endoh mame@tsg.ne.jp
Updated by xibbar (Takeyuki FUJIOKA) about 12 years ago
- Status changed from Assigned to Rejected
I agree with mame-san.
In this case, I think CGI::Cookie::parse is out of role.
Actions
Like0
Like0Like0