From: Art Cancro Date: Thu, 16 Feb 2006 20:17:51 +0000 (+0000) Subject: Fixed some stray HTML output prior to the HTTP headers. X-Git-Tag: v7.86~4195 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2c7cc563df6b74010b18e3163d47a15838aa7b34;p=citadel.git Fixed some stray HTML output prior to the HTTP headers. --- diff --git a/webcit/messages.c b/webcit/messages.c index 69521ea59..704aaaabd 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1832,7 +1832,6 @@ int load_msg_ptrs(char *servcmd, int with_headers) serv_puts(servcmd); serv_getln(buf, sizeof buf); if (buf[0] != '1') { - wprintf("%s
\n", &buf[4]); return (nummsgs); } while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { @@ -2768,7 +2767,7 @@ void display_enter(void) recipient_required = 1; } else if (buf[0] != '2') { /** Any other error means that we cannot continue */ - wprintf("%s
\n", &buf[4]); + wprintf("%s
\n", &buf[4]); goto DONE; } @@ -2785,7 +2784,7 @@ void display_enter(void) } } else if (buf[0] != '2') { /** Any other error means that we cannot continue */ - wprintf("%s
\n", &buf[4]); + wprintf("%s
\n", &buf[4]); goto DONE; } } @@ -3047,7 +3046,7 @@ void delete_msg(void) } serv_getln(buf, sizeof buf); - wprintf("%s
\n", &buf[4]); + wprintf("%s
\n", &buf[4]); wDumpContent(1); } diff --git a/webcit/paging.c b/webcit/paging.c index bde07115e..9aee17f64 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -101,7 +101,7 @@ void page_user(void) wprintf(".
\n"); } else { - wprintf("%s
\n", &buf[4]); + wprintf("%s
\n", &buf[4]); } } diff --git a/webcit/roomops.c b/webcit/roomops.c index 07d6db770..290f85ac4 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -837,15 +837,10 @@ void smart_goto(char *next_room) { */ void slrp_highest(void) { - char buf[SIZ]; + char buf[256]; - /* set pointer */ serv_puts("SLRP HIGHEST"); serv_getln(buf, sizeof buf); - if (buf[0] != '2') { - wprintf("%s
\n", &buf[4]); - return; - } } @@ -1269,7 +1264,7 @@ void display_editroom(void) serv_puts("GETA"); serv_getln(buf, sizeof buf); if (buf[0] != '2') { - wprintf("%s\n", &buf[4]); + wprintf("%s\n", &buf[4]); } else { extract_token(er_roomaide, &buf[4], 0, '|', sizeof er_roomaide); wprintf("\n", er_roomaide);