Bug #2027 ยป open_uri_redirects_to_https.patch
/mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb 2009-09-01 17:21:49.000000000 +0200 | ||
---|---|---|
# file:///etc/passwd.
|
||
# However this is ad hoc. It should be extensible/configurable.
|
||
uri1.scheme.downcase == uri2.scheme.downcase ||
|
||
(/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http*|ftp)\z/i =~ uri2.scheme)
|
||
(/\A(?:https*|ftp)\z/i =~ uri1.scheme && /\A(?:https*|ftp)\z/i =~ uri2.scheme)
|
||
end
|
||
def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
|