From 575f94043fba1fb7cfd9600bc0839477c0014a35 Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 22 Aug 2006 10:21:31 +0000 Subject: [PATCH] * lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is required. [ruby-dev:29316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/net/smtp.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6cfbe770a7..e90bb25625 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 22 19:21:00 2006 Minero Aoki + + * lib/net/smtp.rb: parameter `to_addrs' might be an Array, + .flatten is required. [ruby-dev:29316] + Tue Aug 22 12:35:57 2006 NARUSE, Yui * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index ab9c1afb88..29b7c0b71c 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -794,7 +794,7 @@ module Net def rcptto_list(to_addrs) raise ArgumentError, 'mail destination not given' if to_addrs.empty? - to_addrs.each do |addr| + to_addrs.flatten.each do |addr| rcptto addr end end