commit c60a0d6679012a74fecb5783771a47f794bb5bb8
parent 2d4212f2574e810eb14073581c17418540e79ea9
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 20 May 2011 17:36:07 +0000
fixing Mantis 1680
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+Fri May 20 19:34:59 CEST 2011
+ Fixed bug in parsing multipart/form-data with post processor where
+ the code failed to add a 0-terminator in the correct position. -PP
+
Thu May 12 14:40:46 CEST 2011
Fixed bug where if multiple HTTP request messages are piped in at once,
microhttpd would call the handler with the wrong upload_data_size. -HZM
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c
@@ -650,6 +650,7 @@ process_value_to_boundary (struct MHD_PostProcessor *pp,
pp->state = next_state;
pp->dash_state = next_dash_state;
(*ioffptr) += pp->blen + 4; /* skip boundary as well */
+ buf[newline] = '\0';
break;
}
}