issue #240 - we were using htmlentities instead of htmlspecialchars in several places, and this was a bit greedy in the set of characters which were converted from utf-8 to HTML entities. Also brought mail attachments up to date so they are rendered identically to item attachments.

This commit is contained in:
friendica
2013-12-11 23:13:36 -08:00
parent 18f0ab2605
commit b3fe221b7f
7 changed files with 55 additions and 87 deletions

View File

@@ -1065,7 +1065,7 @@ function theme_attachments(&$item) {
break;
}
$title = htmlentities($r['title'], ENT_COMPAT,'UTF-8');
$title = htmlspecialchars($r['title'], ENT_COMPAT,'UTF-8');
if(! $title)
$title = t('unknown.???');
$title .= ' ' . $r['length'] . ' ' . t('bytes');