diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 04:56:18 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 04:56:18 +0000 |
commit | ed07df5ab5e183aed62cbe33f50a57640617d7a4 (patch) | |
tree | 480a7ea5ab934a9cd7876cb372f51c6b71a11e96 /lib/net | |
parent | 5308538befe847d3b9774257a54d9c4d5b47bd94 (diff) | |
download | ruby-ed07df5ab5e183aed62cbe33f50a57640617d7a4.tar.gz |
* lib/net/imap.rb (rfc822_text): ignore [] after RFC822.
[ruby-core:40945] [Bug #5620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/imap.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index c8faf97c11..b2193dbf93 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2281,6 +2281,11 @@ module Net def rfc822_text token = match(T_ATOM) name = token.value.upcase + token = lookahead + if token.symbol == T_LBRA + shift_token + match(T_RBRA) + end match(T_SPACE) return name, nstring end |