* lowercase mimetype before looking it up; fixes mail rendering problem from mgiggles...
authorWilfried Göesgens <willi@citadel.org>
Mon, 27 Jul 2009 07:26:29 +0000 (07:26 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 27 Jul 2009 07:26:29 +0000 (07:26 +0000)
webcit/messages.c

index 55cf61d406b6377d21cc9264603a018e2bfe9f56..032c4a1331500f0dbb96450affcc673d2ac34515 100644 (file)
@@ -232,6 +232,7 @@ int read_message(StrBuf *Target, const char *tmpl, long tmpllen, long msgnum, co
        /* strip the bare contenttype, so we ommit charset etc. */
        StrBufExtract_token(Buf, Msg->MsgBody->ContentType, 0, ';');
        StrBufTrim(Buf);
+       StrBufLowerCase(Buf);
        /* look up the renderer, that will convert this mimeitem into the htmlized form */
        if (GetHash(MimeRenderHandler, SKEY(Buf), &vHdr) &&
            (vHdr != NULL)) {