From 681475b779a938157e1df2e4c17a78c81564230b Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 11 Mar 2003 11:54:30 +0000 Subject: * 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 --- lib/net/smtp.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/net') 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 @@ -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 -- cgit