From: Wilfried Göesgens Date: Sun, 9 Nov 2008 10:16:12 +0000 (+0000) Subject: * don't choke on empty html messages X-Git-Tag: v7.86~1805 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=948b96687a5d42aff2b5eea7a7d32f6fda941c0f;p=citadel.git * don't choke on empty html messages --- diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 489b0292a..388ac5060 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -625,7 +625,11 @@ void render_MAIL_html(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCh { StrBuf *Buf; /* HTML is fun, but we've got to strip it first */ + if (StrLength(Mime->Data) == 0) + return; + Buf = NewStrBufPlain(NULL, StrLength(Mime->Data)); + output_html(ChrPtr(Mime->Charset), (WC->wc_view == VIEW_WIKI ? 1 : 0), StrToi(Mime->PartNum),