added html filters to processing of text messages so that html tags won't show up in posts
This commit is contained in:
parent
97e7621b8a
commit
ac01ed4221
1 changed files with 2 additions and 1 deletions
|
|
@ -79,8 +79,9 @@ sub addPost {
|
||||||
if (($part->{type} =~ /^text\/plain/ || $part->{type} =~ /^text\/html/) && $part->{filename} eq "") {
|
if (($part->{type} =~ /^text\/plain/ || $part->{type} =~ /^text\/html/) && $part->{filename} eq "") {
|
||||||
my $text = $part->{content};
|
my $text = $part->{content};
|
||||||
if ($part->{type} eq "text/plain") {
|
if ($part->{type} eq "text/plain") {
|
||||||
|
$text = WebGUI::HTML::filter($text, "all");
|
||||||
$text = WebGUI::HTML::format($text, "text");
|
$text = WebGUI::HTML::format($text, "text");
|
||||||
}
|
}
|
||||||
$content .= $text;
|
$content .= $text;
|
||||||
} else {
|
} else {
|
||||||
push(@attachments, $part);
|
push(@attachments, $part);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue