mirror of
https://github.com/curl/curl.git
synced 2026-06-04 16:54: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
|
|
@ -733,7 +733,7 @@ int formparse(struct OperationConfig *config,
|
|||
}
|
||||
|
||||
/* Set part name. */
|
||||
if(name && curl_mime_name(part, name, CURL_ZERO_TERMINATED)) {
|
||||
if(name && curl_mime_name(part, name)) {
|
||||
warnf(config->global, "curl_mime_name failed!\n");
|
||||
Curl_safefree(contents);
|
||||
return 31;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue