From: Art Cancro Date: Mon, 14 Sep 2009 14:12:36 +0000 (+0000) Subject: * Patch to sequence handler X-Git-Tag: v7.86~848 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=45acd85db03bc61e6f2d96f02c0c01a8f8455bf4 * Patch to sequence handler --- diff --git a/webcit/webcit.c b/webcit/webcit.c index 57e3b18e3..25b13ab1f 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -483,7 +483,6 @@ void seconds_since_last_gexp(void) void ReadPostData(void) { - const char *content_end = NULL; int body_start = 0; wcsession *WCC = WC; StrBuf *content = NULL; @@ -513,8 +512,11 @@ void ReadPostData(void) } else if (!strncasecmp(ChrPtr(WCC->Hdr->HR.ContentType), "multipart", 9)) { char *Buf; char *BufEnd; + long len; + + len = StrLength(content); Buf = SmashStrBuf(&content); - content_end = Buf + WCC->Hdr->HR.ContentLength + body_start; + BufEnd = Buf + len; mime_parser(Buf, BufEnd, *upload_handler, NULL, NULL, NULL, 0); free(Buf); } else if (WCC->Hdr->HR.ContentLength > 0) {