Fix a bug (security/stability) in its usage of mail_html_write.

* mail-format.c (handle_text_html): Fix a bug (security/stability)
	in its usage of mail_html_write.

svn path=/trunk/; revision=3227
This commit is contained in:
Dan Winship
2000-05-26 22:05:38 +00:00
parent f555a184fc
commit bae01d4cd8
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-05-26 Dan Winship <danw@helixcode.com>
* mail-format.c (handle_text_html): Fix a bug (security/stability)
in its usage of mail_html_write.
* mail-ops.c (composer_send_cb, reply): set CAMEL_MESSAGE_ANSWERED
on a message after a successful reply.

View File

@ -678,7 +678,7 @@ handle_text_html (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
mail_html_write (html, stream, "\n<!-- text/html -->\n");
text = get_data_wrapper_text (wrapper);
mail_html_write (html, stream, text);
mail_html_write (html, stream, "%s", text);
g_free (text);
mail_html_end (html, stream, FALSE, box);