diff --git a/lib/openid/trustroot.rb b/lib/openid/trustroot.rb index 28c56292..80daec3d 100644 --- a/lib/openid/trustroot.rb +++ b/lib/openid/trustroot.rb @@ -178,7 +178,7 @@ def TrustRoot._parse_url(url) end begin - parsed = URI::parse(url) + parsed = URI::DEFAULT_PARSER.parse(url) rescue URI::InvalidURIError return nil end