]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
* We don't need no steenking workaround. Problem fixed. MIME parser not
[citadel.git] / webcit / webcit.c
index 3b1c058af9d1930d52df5a63099567d2a615e8c0..58f4f5e6304e7f58b6ec314d3f42ee3fc5e0c36c 100644 (file)
@@ -821,7 +821,7 @@ void session_loop(struct httprequest *req)
                              "application/x-www-form-urlencoded", 33)) {
                        addurls(&content[body_start]);
                } else if (!strncasecmp(ContentType, "multipart", 9)) {
-                       content_end = content + ContentLength;
+                       content_end = content + ContentLength + body_start;
                        lprintf(9, "Calling MIME parser\n");
                        mime_parser(content, content_end, *upload_handler,
                                        NULL, NULL, NULL, 0);