From ac01ed422185556f7ed6fc0f982d8cf423890f73 Mon Sep 17 00:00:00 2001 From: Nik Ogura Date: Fri, 6 Apr 2007 15:57:37 +0000 Subject: [PATCH] added html filters to processing of text messages so that html tags won't show up in posts --- lib/WebGUI/Workflow/Activity/GetCsMail.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Workflow/Activity/GetCsMail.pm b/lib/WebGUI/Workflow/Activity/GetCsMail.pm index 0c9256d7b..8c2c679d6 100644 --- a/lib/WebGUI/Workflow/Activity/GetCsMail.pm +++ b/lib/WebGUI/Workflow/Activity/GetCsMail.pm @@ -79,8 +79,9 @@ sub addPost { if (($part->{type} =~ /^text\/plain/ || $part->{type} =~ /^text\/html/) && $part->{filename} eq "") { my $text = $part->{content}; if ($part->{type} eq "text/plain") { + $text = WebGUI::HTML::filter($text, "all"); $text = WebGUI::HTML::format($text, "text"); - } + } $content .= $text; } else { push(@attachments, $part);