Skip to content
Snippets Groups Projects
Commit 84406b3e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

allow newlines in the contents when doing -F "var=[contents]"

parent c323969b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment