diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-23 01:45:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-23 01:45:37 +0000 |
commit | f7575739f98814cbd2189d478a24863cff0083c4 (patch) | |
tree | 00c685ddf0de8e0bfc730567662be003015a2890 | |
parent | 6ee2e542394a14a70acd12b3278b2a9fc5b861fc (diff) | |
download | ruby-f7575739f98814cbd2189d478a24863cff0083c4.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/cgi.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,11 @@ Wed May 23 10:31:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * regsyntax.c, unicode.c: new files along with Oniguruma 5.x. +Wed May 23 06:51:46 2007 URABE Shyouhei <shyouhei@ruby-lang.org> + + * 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 <nobu@ruby-lang.org> * 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 |