$Log$
+Revision 410.7 2003/03/30 06:13:19 ajc
+* When reading from the server, do not treat CR as end-of-line because
+ there's probably an LF coming after it. Instead, keep reading to the LF
+ and then strip both.
+* No not underline links in the icon bars
+
Revision 410.6 2003/03/17 04:17:41 ajc
* Call to accept() was being made with an uninitialized variable for the
third argument. Changed the second and third argument to NULL and 0 because
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
+
+
/* Boring old 80-column fixed format text gets handled this way... */
else if (!strcasecmp(mime_content_type, "text/plain")) {
while (serv_gets(buf), strcmp(buf, "000")) {
+ if (buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = 0;
+ if (buf[strlen(buf)-1] == '\r') buf[strlen(buf)-1] = 0;
while ((strlen(buf) > 0) && (isspace(buf[strlen(buf) - 1])))
buf[strlen(buf) - 1] = 0;
if ((bq == 0) &&
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expired" CONTENT="28-May-1971 18:10:00 GMT">
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE">
+
<?REFRESHTAG>
</HEAD>
<?PAGERSCRIPT>
<HTML>
+<HEAD>
+<style type="text/css">
+<!--
+a {text-decoration: none; }
+-->
+</style>
+</HEAD>
<BODY BGCOLOR=AAAAAA>
<TABLE BORDER=0 CELLSPACING=3 CELLPADDING=3>
<HTML>
+<HEAD>
+<style type="text/css">
+<!--
+a {text-decoration: none; }
+-->
+</style>
+</HEAD>
<BODY BGCOLOR=AAAAAA>
<CENTER>
<TABLE border=0 cellspacing=0 cellpadding=0 width=100%>
serv_read(&buf[0], 1);
ch = buf[0];
strbuf[len++] = ch;
- } while ((ch != 10) && (ch != 13) && (ch != 0) && (len < 255));
- strbuf[len - 1] = 0;
+ } while ((ch != 10) && (ch != 0) && (len < (SIZ-1)));
+ if (strbuf[len-1] == 10) strbuf[--len] = 0;
+ if (strbuf[len-1] == 13) strbuf[--len] = 0;
/* lprintf(9, ">%s\n", strbuf); */
}