aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/imap.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-08 06:46:18 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-08 06:46:18 +0000
commitb8dd149bc0f340051e3dfc2de025b37db88f9604 (patch)
tree9aedbec83897dcc7a6bddd40cde281b816a63be0 /lib/net/imap.rb
parent0d3797f8b62394f5634f4b2b529d28cb46bebf8a (diff)
downloadruby-b8dd149bc0f340051e3dfc2de025b37db88f9604.tar.gz
* lib/net/imap.rb (body_ext_mpart): should work even if body-fld-dsp
is omitted. [ruby-core:69093] [Bug #11128] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/imap.rb')
-rw-r--r--lib/net/imap.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 95e68ae9c1..1cf7aa4ee2 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2639,7 +2639,13 @@ module Net
return param
end
disposition = body_fld_dsp
- match(T_SPACE)
+
+ token = lookahead
+ if token.symbol == T_SPACE
+ shift_token
+ else
+ return param, disposition
+ end
language = body_fld_lang
token = lookahead