summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-19 23:08:34 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-19 23:08:34 +0000
commit016586824f87d2b70641b1e344bac87b7aa752f2 (patch)
tree551d37f1148c9856873be81e1d5e6b2bae59b44a /lib
parent02d1c08962d36c5598f4d285d21026edbebf8c5b (diff)
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')
-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 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