blob: a8b483e1fd9b7f46a00b13e58d88703191d05578 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- lib/uri/generic.rb.orig 2013-11-27 04:27:22.851503866 +0000
+++ lib/uri/generic.rb 2013-11-27 04:27:58.130502926 +0000
@@ -1481,7 +1481,17 @@
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
end
if @fragment
|