broken. Web server was calling it with bad parameters. All fixed now.
* Slightly tweaked the look of the tabs in the room edit screen. Still looks
like crap.
$Log$
+Revision 410.29 2003/05/16 04:11:29 ajc
+* We don't need no steenking workaround. Problem fixed. MIME parser not
+ broken. Web server was calling it with bad parameters. All fixed now.
+* Slightly tweaked the look of the tabs in the room edit screen. Still looks
+ like crap.
+
Revision 410.28 2003/05/15 04:52:26 ajc
* Minor workaround in web forms to handle mime parser problem in uploads
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
wprintf("<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"%s\" "
"METHOD=\"POST\" NAME=\"graphicsupload\">\n", uplurl);
- wprintf("<INPUT TYPE=\"hidden\" NAME=\"foo\" VALUE=\"bar\">\n");
-
wprintf("<INPUT TYPE=\"hidden\" NAME=\"which_room\" VALUE=\"");
urlescputs(bstr("which_room"));
wprintf("\">\n");
wprintf("<BR>");
wprintf("<INPUT TYPE=\"SUBMIT\" VALUE=\"Upload\">\n");
wprintf("<INPUT TYPE=\"RESET\" VALUE=\"Reset Form\">\n");
- wprintf("<INPUT TYPE=\"hidden\" NAME=\"baz\" VALUE=\"eek\">\n");
wprintf("</FORM>\n");
wprintf("<A HREF=\"/display_main_menu\">Cancel</A>\n");
wprintf("</CENTER>\n");
/* print the tabbed dialog */
wprintf("<TABLE border=0 cellspacing=0 cellpadding=0 width=100%%>"
- "<TR ALIGN=CENTER BGCOLOR=\"#FFFFFF\">"
+ "<TR ALIGN=CENTER>"
"<TD> </TD>\n");
if (!strcmp(tab, "admin")) {
- wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
+ wprintf("<TD BGCOLOR=\"#FFFFFF\"><SPAN CLASS=\"tablabel\">");
}
else {
wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=admin\">");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "config")) {
- wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
+ wprintf("<TD BGCOLOR=\"#FFFFFF\"><SPAN CLASS=\"tablabel\">");
}
else {
wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=config\">");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "sharing")) {
- wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
+ wprintf("<TD BGCOLOR=\"#FFFFFF\"><SPAN CLASS=\"tablabel\">");
}
else {
wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=sharing\">");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "listserv")) {
- wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
+ wprintf("<TD BGCOLOR=\"#FFFFFF\"><SPAN CLASS=\"tablabel\">");
}
else {
wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=listserv\">");
font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
font-size: 10pt;
font-style: bold;
- color: #FFFFEE;
+ color: #000000;
}
.boxlabel {
"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);