summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-11 12:00:27 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-11 12:00:27 +0000
commita29a8ec0fee635c09449de9d156a7e54bc321560 (patch)
tree76384cb3e70080a706fb18bb633550943963e9c7
parentea7b2dabcff23ec909a22158c240fa4423377fbe (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--ChangeLog5
-rw-r--r--lib/net/smtp.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a8c1ab9e20..0642474df6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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