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 | 689ccb3d5d5e5a599c9a59e3b3ab71495feb43c7 (patch) | |
tree | eea9e50fd6361d18afc2741d3946e29f555beae1 | |
parent | f46e6c1e48fd3b9fae825f05ef30f53c491fce68 (diff) | |
download | ruby-689ccb3d5d5e5a599c9a59e3b3ab71495feb43c7.tar.gz ruby-689ccb3d5d5e5a599c9a59e3b3ab71495feb43c7.tar.xz ruby-689ccb3d5d5e5a599c9a59e3b3ab71495feb43c7.zip |
* lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is required. [ruby-dev:29316]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/net/smtp.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 22 19:21:00 2006 Minero Aoki <aamine@loveruby.net> + + * 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 <naruse@ruby-lang.org> * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index ab9c1afb8..29b7c0b71 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 |