cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Suggesting CURLOPT_PATH_AS_IS

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Mon, 23 Mar 2015 15:54:23 +0100

On Monday 23 March 2015 13:01:25 Daniel Stenberg wrote:
> Hi friends,
>
> As has been requested a few times, I'm hereby offering an option that allows
> an application to switch off libcurl's "dedotdotify" function. That's the
> function that squashes parts of the path that contain "/../ or "/./".
>
> Normally a path in a URL that says "/moo/../hello" will be sent over the
> wire as just "/hello". (This behavior was added to libcurl in 7.32.0) This
> handling has been unconditional so far.
>
> Attached is a (gzipped to make the test cases survive better) patch. I'll
> welcome all and any comments, high or low.

Looks good to me. One minor remark:

    "tell it to not to that" --> "tell it not to do that"

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-23