From: Art Cancro Date: Sat, 4 Feb 2006 18:11:06 +0000 (+0000) Subject: Fixed the handling of HTML messages when the character set is X-Git-Tag: v7.86~4233 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=c601328b1659a3e94fb8e130436f96c88ba6fe06;hp=6224ced976b170ebbf764f01e36f5e0841a6bc18;p=citadel.git Fixed the handling of HTML messages when the character set is declared in an HTML meta tag instead of in the MIME headers. Nearly all of these messages should parse now. --- diff --git a/webcit/html2html.c b/webcit/html2html.c index 31531f3a0..1f2d358c9 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -249,7 +249,9 @@ void output_html(char *supplied_charset, int treat_as_wiki) { converted_msg = malloc(content_length); strcpy(converted_msg, ""); ptr = msg; + msgend = strchr(msg, 0); while (ptr < msgend) { + /** * Change mailto: links to WebCit mail, by replacing the * link with one that points back to our mail room. Due to @@ -280,7 +282,6 @@ void output_html(char *supplied_charset, int treat_as_wiki) { ptr = &ptr[8]; } else if ( (treat_as_wiki) && (strncasecmp(ptr, "