Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 7c84ec9

Browse files
author
Tobias Haagen Michaelsen
committed
Use RFC 2396 compatible URI parser for trustroot.
From Ruby 2.2 the default `URI.parse` method uses a new RFC 3986 compatible parser, which will parse most of the “invalid” URLs in the trustroot test.
1 parent ff3acd6 commit 7c84ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/openid/trustroot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def TrustRoot._parse_url(url)
178178
end
179179

180180
begin
181-
parsed = URI::parse(url)
181+
parsed = URI::DEFAULT_PARSER.parse(url)
182182
rescue URI::InvalidURIError
183183
return nil
184184
end

0 commit comments

Comments
 (0)