Thread (8 messages) flat view 8 messages, 2 authors, 2016-06-15

Re: [PATCH] remote-curl: ensure that URLs do not have a trailing slash

From: Tay Ray Chuan <hidden>
Date: 2016-06-15 22:48:34

Possibly related (same subject, not in this thread)

Hi,

On Wed, Apr 7, 2010 at 11:12 PM, Junio C Hamano [off-list ref] wrote:
The code does not look like it is making sure things do not have a
trailing slash.  For example, if svc has trailing slash, either %s/%s or
strbuf_addf() would have the last character of svc in rpc->service_url.

You are fixing something else.

The new code avoids duplicated slashes in the middle if "url" can but does
not necessarily end with a slash.  Is that what you are trying to fix?
the commit message is misleading, yes. I'll have another go at it.
 I
wonder if it makes more sense to make sure "url" always ends with a slash
at the calling sites where it is obtained from either the end user or from
the running environment...
Good idea.

-- 
Cheers,
Ray Chuan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help