]> granicus.if.org Git - curl/commitdiff
allow newlines in the contents when doing -F "var=[contents]"
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Apr 2004 15:26:30 +0000 (15:26 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Apr 2004 15:26:30 +0000 (15:26 +0000)
src/main.c

index f0213ee96ee9ab88decab15f5c1b7560fafb7f5d..95cb5f92e30b37d84dfe5e199ec1185ff23ddbd9 100644 (file)
@@ -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;