projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4811b1
)
* Patch to sequence handler
author
Art Cancro
<ajc@citadel.org>
Mon, 14 Sep 2009 14:12:36 +0000
(14:12 +0000)
committer
Art Cancro
<ajc@citadel.org>
Mon, 14 Sep 2009 14:12:36 +0000
(14:12 +0000)
webcit/webcit.c
patch
|
blob
|
history
diff --git
a/webcit/webcit.c
b/webcit/webcit.c
index 57e3b18e36e178528517d19d7a221d4a6e7c8bc9..25b13ab1f673c107521595500f725c771594fd96 100644
(file)
--- a/
webcit/webcit.c
+++ b/
webcit/webcit.c
@@
-483,7
+483,6
@@
void seconds_since_last_gexp(void)
void ReadPostData(void)
{
void ReadPostData(void)
{
- const char *content_end = NULL;
int body_start = 0;
wcsession *WCC = WC;
StrBuf *content = 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;
} else if (!strncasecmp(ChrPtr(WCC->Hdr->HR.ContentType), "multipart", 9)) {
char *Buf;
char *BufEnd;
+ long len;
+
+ len = StrLength(content);
Buf = SmashStrBuf(&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) {
mime_parser(Buf, BufEnd, *upload_handler, NULL, NULL, NULL, 0);
free(Buf);
} else if (WCC->Hdr->HR.ContentLength > 0) {