From: Mark Lanett Date: 2010-08-14T04:27:12+09:00 Subject: [ruby-core:31710] [RubySpec #3692] URI should escape or parse [ and ] RubySpec #3692: URI should escape or parse [ and ] http://redmine.ruby-lang.org/issues/show/3692 Author: Mark Lanett Status: Open, Priority: Normal 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. ---------------------------------------- http://redmine.ruby-lang.org