mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too long (ruby-bugs-ja:PR#404).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cacf41f3b6
commit
d5ca993bc3
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 11 21:00:59 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/smtp.rb: Digest string wrongly included '\n' when user
|
||||
name is too long (ruby-bugs-ja:PR#404).
|
||||
|
||||
Tue Mar 11 20:07:01 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb: speeding up by avoiding extra flush.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue