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/trunk@12377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6ee2e54239
commit
f7575739f9
2 changed files with 6 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue