diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-19 23:08:34 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-19 23:08:34 +0000 |
commit | 85af0187f5a6f9ccb31fa18f0b69658fcf8651b8 (patch) | |
tree | 551d37f1148c9856873be81e1d5e6b2bae59b44a /lib/net | |
parent | d6a764d4c37adf0b51c9e212fc94ae8edc74f4c1 (diff) | |
download | ruby-85af0187f5a6f9ccb31fa18f0b69658fcf8651b8.tar.gz |
lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server
Based on the patch by keysen (Jérémy Carlier).
[ruby-core:81641] [Bug #13649]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/imap.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 39c6734d3b..3f8794cac0 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2232,6 +2232,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 |