Patches item #9753, was opened at 2007-04-02 14:31
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=9753&group_id=426

Category: Ruby1.8
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Sander Adamson (avrndef)
Assigned to: Nobody (None)
Summary: [PATCH] CGI [] error on non-existent parameter

Initial Comment:
CGI fails with a NoMethodError: undefined method `[]' for nil:NilClass if a non-existent parameter is requested through [].

NoMethodError: undefined method `[]' for nil:NilClass
/usr/lib/ruby/1.8/cgi.rb:1166:in `[]'

Patch: in cgi.rb:

1166c1166
<       value = params[0]
---
>       value = params[0] rescue nil


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=9753&group_id=426