* lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c34e899e4f
commit
203b7c50f2
@ -1,3 +1,7 @@
|
|||||||
|
Sat Feb 12 14:10:24 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
* lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.
|
||||||
|
|
||||||
Sat Feb 12 13:54:03 2005 Tanaka Akira <akr@m17n.org>
|
Sat Feb 12 13:54:03 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/open-uri.rb: support https if the platform provides CA
|
* lib/open-uri.rb: support https if the platform provides CA
|
||||||
|
@ -200,6 +200,10 @@ module OpenURI
|
|||||||
raise "Non-HTTP proxy URI: #{proxy}" if proxy.class != URI::HTTP
|
raise "Non-HTTP proxy URI: #{proxy}" if proxy.class != URI::HTTP
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if target.userinfo
|
||||||
|
raise "userinfo not supported. [RFC3986]"
|
||||||
|
end
|
||||||
|
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
klass = Net::HTTP
|
klass = Net::HTTP
|
||||||
if URI::HTTP === target
|
if URI::HTTP === target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user