From: Daniel Stenberg Date: Thu, 22 Apr 2004 15:26:30 +0000 (+0000) Subject: allow newlines in the contents when doing -F "var=[contents]" X-Git-Tag: curl-7_11_2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84406b3e2cd887b2e162345a49d5ffaf3e0f43ec;p=thirdparty%2Fcurl.git allow newlines in the contents when doing -F "var=[contents]" --- diff --git a/src/main.c b/src/main.c index f0213ee96e..95cb5f92e3 100644 --- a/src/main.c +++ b/src/main.c @@ -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;