Open greenfork opened 1 year ago
Yeah this looks like a bug
uri
blows up on it:
irb(main):004:0> URI.parse("http://`www.example.com")
/Users/dentarg/.rubies/3.2.2/lib/ruby/3.2.0/uri/rfc3986_parser.rb:66:in `split': bad URI(is not URI?): "http://`www.example.com" (URI::InvalidURIError)
from /Users/dentarg/.rubies/3.2.2/lib/ruby/3.2.0/uri/rfc3986_parser.rb:71:in `parse'
from /Users/dentarg/.rubies/3.2.2/lib/ruby/3.2.0/uri/common.rb:193:in `parse'
from (irb):4:in `<main>'
from /Users/dentarg/.rubies/3.2.2/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
from /Users/dentarg/.rubies/3.2.2/bin/irb:25:in `load'
from /Users/dentarg/.rubies/3.2.2/bin/irb:25:in `<main>'
The
tildebacktick symbol (`) seems allowed in the host. In the spec it is not allowed: