aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2006-11-27 02:30:29 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-11-27 02:30:29 +0800
commit0a7017c1a673ec61479db348d7ff7452b19f664e (patch)
treec5f84ec17098333fb9498ae98a70b3832c2a5f1e /mail/em-utils.c
parentd8b4b86497a9b95433b2fe967d3bec62cd6bc69c (diff)
downloadgsoc2013-evolution-0a7017c1a673ec61479db348d7ff7452b19f664e.tar.gz
gsoc2013-evolution-0a7017c1a673ec61479db348d7ff7452b19f664e.tar.zst
gsoc2013-evolution-0a7017c1a673ec61479db348d7ff7452b19f664e.zip
Fix for bug #337439 DoS attach with large emails
2006-11-26 Srinivasa Ragavan <sragavan@novell.com> * Fix for bug #337439 DoS attach with large emails svn path=/trunk/; revision=33024
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index b8669b2c7f..d8d0109fa7 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1605,6 +1605,7 @@ em_utils_part_to_html(CamelMimePart *part, ssize_t *len, EMFormat *source)
camel_stream_mem_set_byte_array (mem, buf);
emfq = em_format_quote_new(NULL, (CamelStream *)mem, 0);
+ ((EMFormat *) emfq)->composer = TRUE;
em_format_set_session((EMFormat *)emfq, session);
if (source) {
/* copy over things we can, other things are internal, perhaps need different api than 'clone' */
@@ -1653,6 +1654,7 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32
camel_stream_mem_set_byte_array (mem, buf);
emfq = em_format_quote_new(credits, (CamelStream *)mem, flags);
+ ((EMFormat *) emfq)->composer = TRUE;
em_format_set_session((EMFormat *)emfq, session);
if (!source) {