From: Roger Neel Date: 2010-07-31T09:54:19+09:00 Subject: [ruby-core:31557] [Bug #3457] URI.encode does not escape square brackets Issue #3457 has been updated by Roger Neel. I want to throw my hat in the ring that this should be reopened. It's not the expected behavior of URI.encode to not handle 'unsafe' characters as laid out here: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm I just had a bad production bug of IE & Chrome not being able to download files with [ and ] in them. Our solution was to hack a .gsub(/(\[|\])/,'') in to remove the square brackets after encoding the URL path (not host). Also, if not removing square brackets from the host & path is not expected in IPv4, wouldn't that make this *not* IPv4 compliant in lieu of the changes in IPv6? ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3457 ---------------------------------------- http://redmine.ruby-lang.org