* felamimail/infolog: fix for stripping too much text when strip_tags stumbles over assumed broken tags; happens sometimes, when converting a text-only mail to infolog and the mail has stuff like: <1 USD/p

This commit is contained in:
Klaus Leithoff 2011-01-05 11:36:04 +00:00
parent ee0b4722b4
commit 8032a5155e

View File

@ -3562,7 +3562,8 @@
$message .= $newBody;
continue;
}
$newBody = strip_tags($newBody);
$newBody = strip_tags(self::htmlspecialchars($newBody));
$newBody = htmlspecialchars_decode($newBody,ENT_QUOTES);
$newBody = explode("\n",$newBody);
// create it new, with good line breaks
reset($newBody);