1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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@12342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2007-05-22 22:02:44 +00:00
parent 7eabee4a40
commit e47f91a9ea
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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