diff options
-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 |