mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (msg_att): accepts extra space before ')'.
based on the patch by art lussos. [Bug #5163] [ruby-core:38820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
29cbd33923
commit
28b5db007f
3 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 19 11:28:58 2011 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (msg_att): accepts extra space before ')'.
|
||||
based on the patch by art lussos. [Bug #5163] [ruby-core:38820]
|
||||
|
||||
Wed Aug 17 23:01:00 2011 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (cannot_be_coerced_into_BigDecimal):
|
||||
|
|
|
@ -2170,7 +2170,7 @@ module Net
|
|||
break
|
||||
when T_SPACE
|
||||
shift_token
|
||||
token = lookahead
|
||||
next
|
||||
end
|
||||
case token.value
|
||||
when /\A(?:ENVELOPE)\z/ni
|
||||
|
|
|
@ -99,4 +99,21 @@ EOF
|
|||
EOF
|
||||
assert_equal [1, 2, 3], response.data
|
||||
end
|
||||
|
||||
def test_msg_att_extra_space
|
||||
parser = Net::IMAP::ResponseParser.new
|
||||
response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
|
||||
* 1 FETCH (UID 92285)
|
||||
EOF
|
||||
assert_equal 92285, response.data.attr["UID"]
|
||||
|
||||
response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
|
||||
* 1 FETCH (UID 92285 )
|
||||
EOF
|
||||
assert_equal 92285, response.data.attr["UID"]
|
||||
|
||||
response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
|
||||
* 1 FETCH (UID 92285 )
|
||||
EOF
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue