Project

General

Profile

Actions

Feature #6621

closed

Accept a CGI parameter without a value

Added by drbrain (Eric Hodel) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
[ruby-core:45761]

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) almost 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) almost 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.

Actions #3

Updated by xibbar (Takeyuki FUJIOKA) almost 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

  • 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

Also available in: Atom PDF

Like0
Like0Like0Like0