This project is closed and read-only.
Actions
Misc #3692
closedURI should escape or parse [ and ]
Misc #3692:
URI should escape or parse [ and ]
Status:
Rejected
Assignee:
-
Description
=begin
This fails:
URI.parse( URI.escape("http://example.com/some[1].jpg") )
It raises URI::InvalidURIError
It should either parse or escape the brackets.
I know they are considered to be "unsafe". It doesn't matter. Some web pages use them and the Ruby libraries should be able to parse data in the field.
The alternative is to write additional escaping code anywhere one uses URI.escape because it is inadequate.
=end
Actions