Project

General

Profile

Actions

Bug #14793

closed

Hash returned from CGI.parse has [] as default value

Added by avit (Andrew Vit) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:87290]

Description

Is there a valid reason for this behaviour? It looks like a bug to me:

require 'cgi'

params = CGI.parse("")
params["x"]
#=> []

(Expected nil)

I looked at history and it looks like it has been there from the very beginning of cgi.rb.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0