diff options
author | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-27 18:12:36 +0000 |
---|---|---|
committer | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-27 18:12:36 +0000 |
commit | 025723b978290e57825df9b981ef4f05650b8178 (patch) | |
tree | a5a1fbe9406eb8ce1e093978ddef0582e612dbcf | |
parent | 96d8d4862fe405975cb388ddf4e9149d5d7fc647 (diff) | |
download | ruby-025723b978290e57825df9b981ef4f05650b8178.tar.gz |
* lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMA
<zn@mbf.nifty.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/cgi.rb | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Dec 28 03:09:58 2002 Wakou Aoyama <wakou@ruby-lang.org> + + * lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMA + <zn@mbf.nifty.com> + Sat Dec 28 00:34:03 2002 WATANABE Hirofumi <eban@ruby-lang.org> * {win32,bcc32}/Makefile.sub: remove `=' from --make-flags options. diff --git a/lib/cgi.rb b/lib/cgi.rb index fbb9a346c2..bf7aa85f59 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -943,6 +943,9 @@ convert string charset, and set language to "ja". def [](key) value = @params[key][0] + def value.to_ary + [self.dup] + end def value.[](key) $stderr.puts <<END CAUTION! cgi['key'] == cgi.params['key'][0] If want Array, use cgi.params['key'] |