mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/smtp.rb: unify coding style.
* lib/net/http.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
28cbfaba2b
commit
23301726b0
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Jul 29 18:55:22 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/smtp.rb: unify coding style.
|
||||
|
||||
* lib/net/http.rb: ditto.
|
||||
|
||||
Tue Jul 29 17:27:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ruby.h (LLONG_MIN): fix typo.
|
||||
|
|
|
@ -1144,7 +1144,7 @@ module Net
|
|||
|
||||
def range_length
|
||||
r = self.content_range
|
||||
r and r.end - r.begin
|
||||
r and (r.end - r.begin)
|
||||
end
|
||||
|
||||
def basic_auth( account, password )
|
||||
|
|
|
@ -488,12 +488,12 @@ module Net
|
|||
private
|
||||
|
||||
def send0( from_addr, to_addrs )
|
||||
raise IOError, "closed session" unless @socket
|
||||
raise IOError, 'closed session' unless @socket
|
||||
raise ArgumentError, 'mail destination does not given' if to_addrs.empty?
|
||||
raise SecurityError, 'tainted from_addr' if from_addr.tainted?
|
||||
to_addrs.each{|to|
|
||||
to_addrs.each do |to|
|
||||
raise SecurityError, 'tainted to_addr' if to.tainted?
|
||||
}
|
||||
end
|
||||
|
||||
mailfrom from_addr
|
||||
to_addrs.each do |to|
|
||||
|
|
Loading…
Reference in a new issue