# File lib/openid/trustroot.rb, line 173 def TrustRoot._parse_url(url) begin url = URINorm.urinorm(url) rescue URI::InvalidURIError => err nil end begin parsed = URI::parse(url) rescue URI::InvalidURIError return nil end path = TrustRoot._build_path(parsed.path, parsed.query, parsed.fragment) return [parsed.scheme || '', parsed.host || '', parsed.port || '', path || ''] end