diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-25 21:35:19 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-25 21:35:19 +0000 |
commit | 7c31f2a12039966f92a1d85493dcc1413ef23080 (patch) | |
tree | 399569ae5cddb9fedd186ce876728e1638cc980e | |
parent | 7f31a0e7933885729eeb94629bb342b0949a1369 (diff) | |
download | ruby-7c31f2a12039966f92a1d85493dcc1413ef23080.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/net/telnet.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb index 16459d7c65..7157f2ac34 100644 --- a/lib/net/telnet.rb +++ b/lib/net/telnet.rb @@ -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"] |