diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-24 04:44:25 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-24 04:44:25 +0000 |
commit | e34f7ef3cca01d135d6290483851c2ceb31b5991 (patch) | |
tree | 540324bf9b799c3ae385275639738206d56a4a1d | |
parent | bba2f6d4052235e9c8d62c0c3b7294e8dae1d7b7 (diff) | |
download | ruby-e34f7ef3cca01d135d6290483851c2ceb31b5991.tar.gz |
* lib/net/imap.rb (authenticate): remove "\n" from base64 encoded
strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/net/imap.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Dec 24 13:43:34 2003 Shugo Maeda <shugo@ruby-lang.org> + + * lib/net/imap.rb (authenticate): remove "\n" from base64 encoded + strings. + Wed Dec 24 11:26:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> * test/fileutils/test_fileutils.rb: should not create any diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 475c2ad0de..086717b97e 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -350,7 +350,7 @@ module Net # :nodoc: send_command("AUTHENTICATE", auth_type) do |resp| if resp.instance_of?(ContinuationRequest) data = authenticator.process(resp.data.text.unpack("m")[0]) - send_data([data].pack("m").chomp) + send_data([data].pack("m").gsub(/\n/, "")) end end end |