From f7575739f98814cbd2189d478a24863cff0083c4 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 23 May 2007 01:45:37 +0000 Subject: [PATCH] * lib/cgi.rb (CGI#[]): get rid of exceptions being raised. [ruby-dev:30740], Thanks Kentaro KAWAMOTO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/cgi.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4987dae622..3645ecb791 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ Wed May 23 10:31:53 2007 Yukihiro Matsumoto * regsyntax.c, unicode.c: new files along with Oniguruma 5.x. +Wed May 23 06:51:46 2007 URABE Shyouhei + + * lib/cgi.rb (CGI#[]): get rid of exceptions being raised. + [ruby-dev:30740], Thanks Kentaro KAWAMOTO. + Wed May 23 05:49:49 2007 Nobuyoshi Nakada * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default diff --git a/lib/cgi.rb b/lib/cgi.rb index 99dd0aae16..0a108df100 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1213,6 +1213,7 @@ class CGI # retrieved; use #params() to get the array of values. def [](key) params = @params[key] + return '' unless params value = params[0] if @multipart if value