mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/core.rb (read_from_cmdline): this code is better.
[ruby-core:25991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bed9e8e297
commit
64486dfd8e
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 12 23:08:11 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
|
||||
|
||||
* lib/cgi/core.rb (read_from_cmdline): this code is better.
|
||||
[ruby-core:25991]
|
||||
|
||||
Thu Nov 12 22:55:42 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
|
||||
|
||||
* lib/net/telnet.rb: don't use simple delegate.
|
||||
|
|
|
@ -555,11 +555,7 @@ class CGI
|
|||
%|(offline mode: enter name=value pairs on standard input)\n|
|
||||
)
|
||||
end
|
||||
array = nil
|
||||
begin
|
||||
readlines
|
||||
rescue
|
||||
end
|
||||
array = readlines rescue nil
|
||||
if not array.nil?
|
||||
array.join(' ').gsub(/\n/n, '')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue