Actions
Feature #6621
closedAccept a CGI parameter without a value
Description
So "id" will be treaded like "id="
From https://github.com/ruby/ruby/pull/58
Patch by Michel Martens: https://github.com/ruby/ruby/pull/58.diff
Updated by nobu (Nobuyoshi Nakada) over 12 years ago
- Status changed from Open to Feedback
Why do you need it?
Shouldn't it be an error?
Updated by xibbar (Takeyuki FUJIOKA) over 12 years ago
when query is 'id=123&id=', cgi["id"] is 123.
but query is 'id=123&id', cgi["id"] is "".
I will update with this patch.
Updated by xibbar (Takeyuki FUJIOKA) over 12 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r36304.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
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]
Actions
Like0
Like0Like0Like0