8
mroach
7y

http://a/b[]”s escaped with URI.escape aren’t necessarily valid input for URI.parse
URI.parse(URI.escape(“http://a/b[]”))
=> URI:InvalidURIError

Comments
  • -1
    This is why we only use sane languages
  • 1
    That doesn't look like a valid uri
    Can't say I'm surprised.
  • 0
    @Root that’s why escaping should make it valid. CGI.escape does it but URI doesn’t
Add Comment