diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-11 12:00:27 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-11 12:00:27 +0000 |
commit | a29a8ec0fee635c09449de9d156a7e54bc321560 (patch) | |
tree | 76384cb3e70080a706fb18bb633550943963e9c7 | |
parent | ea7b2dabcff23ec909a22158c240fa4423377fbe (diff) |
* lib/net/smtp.rb (auth_cram_md5): Digest string had wrongly included '\n' when user name is too long (ruby-bugs-ja:PR#404).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/net/smtp.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Mar 11 21:06:31 2003 Minero Aoki <aamine@loveruby.net> + + * lib/net/smtp.rb (auth_cram_md5): Digest string had wrongly + included '\n' when user name is too long. (ruby-bugs-ja:PR#404) + Fri Mar 7 00:30:33 2003 WATANABE Hirofumi <eban@ruby-lang.org> * ext/Win32API/Win32API.c: no longer use inline-asms. diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 92c0f3960f..12a889c47d 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -348,7 +348,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 |