From: Gregor Schmidt Date: 2010-06-23T02:45:47+09:00 Subject: [ruby-core:30863] [Bug #3457] URI.encode does not escape square brackets Issue #3457 has been updated by Gregor Schmidt. I am aware, that URI.encode currently does not analyze the URI's structure, but how is this related to being spec compliant. According to the RFC square brackets are not allowed in most parts of the URI, but they currently are not escaped. I would expect, that URI.escape replaces all illegal characters with a safe escape sequence, just like the RDoc states: 'Escapes the string, replacing all unsafe characters with codes'. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3457 ---------------------------------------- http://redmine.ruby-lang.org