diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2009-06-18 13:01:02 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2009-06-18 13:01:02 +0000 |
commit | 1c15187aab7c9b00bfc542df17d5d6a8822776a3 (patch) | |
tree | 821a3e775dcf72da44bc746953b6e8279e27a4c9 /lang/ruby19 | |
parent | - Update to 5.7 snapshot 20090613 (diff) |
- Fix the bug in URI module that smashed uri paths in merge method for
ftp uris.
PR: ports/131775
Reported by: Helmut Schneider <jumper99@gmx.de>
Notes
Notes:
svn path=/head/; revision=236220
Diffstat (limited to 'lang/ruby19')
-rw-r--r-- | lang/ruby19/files/patch-lib_uri_generic.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-lib_uri_generic.rb b/lang/ruby19/files/patch-lib_uri_generic.rb new file mode 100644 index 000000000000..74c04fa79553 --- /dev/null +++ b/lang/ruby19/files/patch-lib_uri_generic.rb @@ -0,0 +1,19 @@ +--- lib/uri/generic.rb.orig 2009-06-18 16:47:45.000000000 +0400 ++++ lib/uri/generic.rb 2009-06-18 16:48:54.000000000 +0400 +@@ -1032,7 +1032,15 @@ + end + end + +- str << path_query ++ path = path_query ++ ++ # ++ # Add URI delimiter if the path misses it (like as in FTP) ++ # ++ if not path.empty? and not str.empty? and path[0, 1] != '/' ++ path = '/' + path ++ end ++ str << path + end + + if @fragment |