diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-22 10:21:31 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-22 10:21:31 +0000 |
commit | 575f94043fba1fb7cfd9600bc0839477c0014a35 (patch) | |
tree | eea9e50fd6361d18afc2741d3946e29f555beae1 /lib | |
parent | 2d99616ec8513ce83fd3d626caa80d948862f95b (diff) | |
download | ruby-575f94043fba1fb7cfd9600bc0839477c0014a35.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/smtp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |