curl-library
Re: nul bytes in form field names
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Sep 2017 00:18:38 +0200 (CEST)
Date: Wed, 20 Sep 2017 00:18:38 +0200 (CEST)
On Tue, 19 Sep 2017, Patrick Monnerat via curl-library wrote:
> Please note this will affect the form API compatibility.
Mostly theoretically, right? I mean the old API didn't really send names
properly with embedded zeroes either, did it?
> Do we keep the length parameter for names or suppress it and require names
> are always nul-terminated ?
I vote for requiring nul termination, just to make the API a little bit
simpler.
> The only place I've ever seen it is in the pre Apr 2011 formdata.c
> _FORM_DEBUG enabled code :-)
I don't think we should count that as real use! =)
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-09-20