]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
Noted with a comment where we need to handle ENT0 errors
[citadel.git] / webcit / messages.c
index e809b8ebbd293959fe90834858eb79f48bc3d837..feaf5db329371b53bafbd3c06bcc0b3c70de94e8 100644 (file)
@@ -399,6 +399,8 @@ void embed_message(void) {
        StrBuf *CmdBuf = NULL;
 
        msgnum = StrBufExtract_long(WCC->Hdr->HR.ReqLine, 0, '/');
+       if (msgnum <= 0) return;
+
        switch (WCC->Hdr->HR.eReqType)
        {
        case eGET:
@@ -1125,6 +1127,7 @@ void post_message(void)
                                }
                                dont_post = lbstr("postseq");
                        } else {
+                               /* FIXME this does not work!  It just displays an empty screen */
                                syslog(9, "%s:%d: server post error: %s\n", __FILE__, __LINE__, ChrPtr(Buf) + 4);
                                AppendImportantMessage(ChrPtr(Buf) + 4, StrLength(Buf) - 4);
                                if (save_to_drafts) gotoroom(WCC->CurRoom.name);