summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 11:26:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 11:26:08 +0000
commit937457fee8b10359036b5bf47753505d8daf4610 (patch)
tree229c0e316a8e2bd2aff30ba84fb2150ab2771afa /lib
parent1f32210886991820d815c4d1962dded7ff7eb816 (diff)
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_3@62131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/imap.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 439ca13206..88fccdbcce 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2201,6 +2201,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