mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03:00
form/mime: field names are not allowed to contain zero-valued bytes.
Also suppress length argument of curl_mime_name() (names are always zero-terminated).
This commit is contained in:
parent
fa9482ab09
commit
ee56fdb691
21 changed files with 94 additions and 102 deletions
|
|
@ -2009,8 +2009,7 @@ CURL_EXTERN curl_mimepart *curl_mime_addpart(curl_mime *mime);
|
|||
*
|
||||
* Set mime/form part name.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part,
|
||||
const char *name, size_t namesize);
|
||||
CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part, const char *name);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_filename()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue