From b9b7cf6dfbf551f31d17560b56417fae28eb103f Mon Sep 17 00:00:00 2001 From: nagachika Date: Wed, 20 Dec 2017 15:31:18 +0000 Subject: merge revision(s) 59372: [Backport #13649] lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server Based on the patch by keysen (Jeremy Carlier). [ruby-core:81641] [Bug #13649] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@61369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 7a4d4da301..887fa2b751 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2199,6 +2199,10 @@ module Net else result = response_tagged end + while lookahead.symbol == T_SPACE + # Ignore trailing space for Microsoft Exchange Server + shift_token + end match(T_CRLF) match(T_EOF) return result -- cgit v1.2.3