Project

General

Profile

Actions

Bug #1699

closed

URI::FTP to_s problem after modification

Added by mizyo (Norihisa Fujita) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-06-29 trunk 23886)
Backport:
[ruby-core:24077]

Description

=begin
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
=end


Files

patch (477 Bytes) patch mizyo (Norihisa Fujita), 06/29/2009 12:13 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0