Bug #1699: URI::FTP to_s problem after modification
http://redmine.ruby-lang.org/issues/show/1699

Author: Norihisa Fujita
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-06-29 trunk 23886)

After modification URI::FTP object by +, a slash is missing after host.
ruby 1.8.7 also has this problem, but 1.8.6 does not.

I think we should use self.path instead of @path in to_s. (please see attached patch)

Reproduction code is:
require 'uri'
uri = 'ftp://host/path'
puts URI.parse(uri)  #=> ftp://host/path
puts URI.parse(uri) + './foobar' #=> ftp://hostfoobar


----------------------------------------
http://redmine.ruby-lang.org