diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-22 22:00:27 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-22 22:00:27 +0000 |
commit | 954bcdab802417b911573a9d1746eef395e2ba12 (patch) | |
tree | 39e599969a19a01305755d0c511ab135e9a6200f | |
parent | de3b68ad42b4c3850bef4356453fe8c1cbf0c41c (diff) |
* 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/branches/ruby_1_8_5@12341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/cgi.rb | 1 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed May 23 06:51:46 2007 URABE Shyouhei <[email protected]> + + * lib/cgi.rb (CGI#[]): get rid of exceptions being raised. + [ruby-dev:30740], Thanks Kentaro KAWAMOTO. + Wed May 23 06:14:15 2007 Nobuyoshi Nakada <[email protected]> * win32/win32.c (move_to_next_entry): loc also must move forward. diff --git a/lib/cgi.rb b/lib/cgi.rb index d4bea54e7e..a5f79b14ac 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1163,6 +1163,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 @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-05-23" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20070523 -#define RUBY_PATCHLEVEL 48 +#define RUBY_PATCHLEVEL 49 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |