Anton Kalmykov's fix for dealing with form names with spaces!
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Jun 2001 09:39:35 +0000 (09:39 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Jun 2001 09:39:35 +0000 (09:39 +0000)
lib/formdata.c

index 656e4de..e7e0dd9 100644 (file)
@@ -115,7 +115,7 @@ int FormParse(char *input,
   struct HttpPost *subpost; /* a sub-node */
   unsigned int i;
 
-  if(1 <= sscanf(input, "%255[^ =] = %4095[^\n]", name, contents)) {
+  if(1 <= sscanf(input, "%255[^=]=%4095[^\n]", name, contents)) {
     /* the input was using the correct format */
     contp = contents;