aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-11 23:13:36 -0800
committerfriendica <info@friendica.com>2013-12-11 23:13:36 -0800
commitb3fe221b7fe9c6ecc151d9c00f36d3913526f6a3 (patch)
tree2f074601c98f8403ba5b6db2a4b76b552ddfa8aa /include/text.php
parent18f0ab2605790f616ffd9b7a988e8dbdb10a0157 (diff)
downloadvolse-hubzilla-b3fe221b7fe9c6ecc151d9c00f36d3913526f6a3.tar.gz
volse-hubzilla-b3fe221b7fe9c6ecc151d9c00f36d3913526f6a3.tar.bz2
volse-hubzilla-b3fe221b7fe9c6ecc151d9c00f36d3913526f6a3.zip
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.
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index aa23f96b0..042a972d1 100755
--- a/include/text.php
+++ b/include/text.php
@@ -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');