* 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
@ -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>
|
Tue Jul 29 17:27:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.h (LLONG_MIN): fix typo.
|
* ruby.h (LLONG_MIN): fix typo.
|
||||||
|
@ -1144,7 +1144,7 @@ module Net
|
|||||||
|
|
||||||
def range_length
|
def range_length
|
||||||
r = self.content_range
|
r = self.content_range
|
||||||
r and r.end - r.begin
|
r and (r.end - r.begin)
|
||||||
end
|
end
|
||||||
|
|
||||||
def basic_auth( account, password )
|
def basic_auth( account, password )
|
||||||
|
@ -488,12 +488,12 @@ module Net
|
|||||||
private
|
private
|
||||||
|
|
||||||
def send0( from_addr, to_addrs )
|
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 ArgumentError, 'mail destination does not given' if to_addrs.empty?
|
||||||
raise SecurityError, 'tainted from_addr' if from_addr.tainted?
|
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?
|
raise SecurityError, 'tainted to_addr' if to.tainted?
|
||||||
}
|
end
|
||||||
|
|
||||||
mailfrom from_addr
|
mailfrom from_addr
|
||||||
to_addrs.each do |to|
|
to_addrs.each do |to|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user