added html filters to processing of text messages so that html tags won't show up in posts

This commit is contained in:
Nik Ogura 2007-04-06 15:57:37 +00:00
parent 97e7621b8a
commit ac01ed4221

View file

@ -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);