* lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
pattern case insensitive. [ruby-Bugs-10746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f31a0e793
commit
7c31f2a120
@ -1,3 +1,8 @@
|
||||
Wed Oct 25 06:34:11 2007 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
|
||||
pattern case insensitive. [ruby-Bugs-10746]
|
||||
|
||||
Fri Oct 26 04:21:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch from
|
||||
|
@ -708,7 +708,7 @@ module Net
|
||||
# data is also yielded to the block as it is received.
|
||||
def login(options, password = nil) # :yield: recvdata
|
||||
login_prompt = /[Ll]ogin[: ]*\z/n
|
||||
password_prompt = /Password[: ]*\z/n
|
||||
password_prompt = /[Pp]assword[: ]*\z/n
|
||||
if options.kind_of?(Hash)
|
||||
username = options["Name"]
|
||||
password = options["Password"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user