cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: absolute paths only

From: <junk_at_igrspace.com>
Date: Wed, 26 Sep 2007 07:33:57 -0700 (PDT)

On Wed, 26 Sep 2007, Daniel Stenberg wrote:

> Right, but it would be very easy to just check if
> the first letter in the path is a slash or not
> and just return an error if not?
> Or perhaps it would be even
> better to prepend a slash for that case if that option is enabled?

Yes, that would probably be the best solution. And that
will make the option completely unnecessary. Actually, libcurl should
not go back to the entry path when the path starts with a slash.(1)

> So, while it isn't worth bending over backwards for I still think it is
worth
> at least consider and discuss properly before dismissing the idea
completely.

So, what about this patch ? :)

Immanuel

Received on 2007-09-26