aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-quote.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-format-quote.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-format-quote.c')
-rw-r--r--mail/em-format-quote.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-format-quote.c b/mail/em-format-quote.c
index 87f9fb96fc..b3de8a33ba 100644
--- a/mail/em-format-quote.c
+++ b/mail/em-format-quote.c
@@ -411,7 +411,7 @@ emfq_format_source(EMFormat *emf, CamelStream *stream, CamelMimePart *part)
camel_stream_filter_add(filtered_stream, html_filter);
camel_object_unref(html_filter);
- em_format_format_text(emf, (CamelStream *)filtered_stream, dw);
+ em_format_format_text(emf, (CamelStream *)filtered_stream, part);
camel_object_unref(filtered_stream);
}
@@ -473,7 +473,7 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E
camel_stream_filter_add(filtered_stream, html_filter);
camel_object_unref(html_filter);
- em_format_format_text((EMFormat *)emfq, (CamelStream *)filtered_stream, camel_medium_get_content_object((CamelMedium *)part));
+ em_format_format_text((EMFormat *)emfq, (CamelStream *)filtered_stream, part);
camel_stream_flush((CamelStream *)filtered_stream);
camel_object_unref(filtered_stream);
}
@@ -501,7 +501,7 @@ emfq_text_enriched(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part
camel_object_unref(enriched);
camel_stream_write_string(stream, "<br><hr><br>");
- em_format_format_text((EMFormat *)emfq, (CamelStream *)filtered_stream, dw);
+ em_format_format_text((EMFormat *)emfq, (CamelStream *)filtered_stream, part);
camel_object_unref(filtered_stream);
}
@@ -509,7 +509,7 @@ static void
emfq_text_html(EMFormat *emf, CamelStream *stream, CamelMimePart *part, EMFormatHandler *info)
{
camel_stream_write_string(stream, "\n<!-- text/html -->\n");
- em_format_format_text(emf, stream, camel_medium_get_content_object((CamelMedium *)part));
+ em_format_format_text(emf, stream, part);
}
static void