mirror of
https://github.com/curl/curl.git
synced 2026-05-19 20:46:20 +03:00
allow newlines in the contents when doing -F "var=[contents]"
This commit is contained in:
parent
c323969bdd
commit
84406b3e2c
1 changed files with 1 additions and 1 deletions
|
|
@ -767,7 +767,7 @@ static int formparse(char *input,
|
|||
contents = malloc(strlen(input));
|
||||
contents[0] = '\000';
|
||||
|
||||
if(1 <= sscanf(input, "%255[^=]=%[^\n]", name, contents)) {
|
||||
if(1 <= sscanf(input, "%255[^=]=%s", name, contents)) {
|
||||
/* the input was using the correct format */
|
||||
contp = contents;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue