diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-11 11:54:30 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-11 11:54:30 +0000 |
| commit | 681475b779a938157e1df2e4c17a78c81564230b (patch) | |
| tree | 33f500d410f68630a2e8af7692a3faa4439b8742 /lib | |
| parent | a500aec8d6c8448b20f2e7d874f96e2c94425ec4 (diff) | |
| download | ruby-681475b779a938157e1df2e4c17a78c81564230b.tar.gz ruby-681475b779a938157e1df2e4c17a78c81564230b.tar.xz ruby-681475b779a938157e1df2e4c17a78c81564230b.zip | |
* lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too long (ruby-bugs-ja:PR#404).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/smtp.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 4b70f9e11..89740411b 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -2,7 +2,8 @@ = net/smtp.rb -Copyright (c) 1999-2002 Yukihiro Matsumoto +Copyright (c) 1999-2003 Yukihiro Matsumoto +Copyright (c) 1999-2003 Minero Aoki written & maintained by Minero Aoki <aamine@loveruby.net> @@ -362,7 +363,7 @@ module Net tmp = Digest::MD5.digest(isecret + challenge) tmp = Digest::MD5.hexdigest(osecret + tmp) - getok [user + ' ' + tmp].pack('m').chomp + getok [user + ' ' + tmp].pack('m').gsub(/\s+/, '') } end |
