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
Updated by naruse (Yui NARUSE) about 16 years ago
- Status changed from Open to Rejected
=begin
URI.escape is not for this use case.
See also Bug #3457.
=end
Actions