Bug #1466
closedURI#parse fails on some working urls
Description
=begin
i tried this snippet of code
i don't know why it fails
although this url is a working one. i tried it on my browser and works fine
Also tried it on mechanize and worked
the exception was that one
from /usr/lib/ruby/1.8/uri/common.rb:436:in split' from /usr/lib/ruby/1.8/uri/common.rb:485:in
parse'
from (irb):7
i think this is a bug
=end
Updated by daniel (Daniel Cavanagh) over 15 years ago
=begin
[ ] are at least a problem. i ran into this a little while ago
according to http://www.ietf.org/rfc/rfc2732.txt, [ ] are used to define
an ipv6 address and are thus reserved. and as the rfc shows, they where
originally part of the 'unwise' set of characters that are supposed to be
always encoded so as to not cause problems (with gateways and other broken
things)
try encoding [ ] (%5B and %5D) to see if it fixes the problem. ( ) might be
too, but that's just a guess. i'm too lazy to recheck :)
=end
Updated by naruse (Yui NARUSE) about 15 years ago
- Status changed from Open to Rejected
=begin
[] is not allowed for URI.
escape them.
=end