aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/email.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-11-11 19:37:40 -0500
committerSteve Clay <steve@mrclay.org>2012-11-11 19:37:40 -0500
commita73df942c5e863996358cb28f31eddaea7f0bdb8 (patch)
tree59366971c4abe2249b90fdf7e29d726d8b513c76 /views/default/output/email.php
parentcf78b4d7b4b9a8a3c57cea779aeca9cbe7ace7ed (diff)
parent6648304aa71067a05b0d4166396f5f93c0f66628 (diff)
downloadelgg-a73df942c5e863996358cb28f31eddaea7f0bdb8.tar.gz
elgg-a73df942c5e863996358cb28f31eddaea7f0bdb8.tar.bz2
Merge branch '4593-18' into 1.8
Diffstat (limited to 'views/default/output/email.php')
-rw-r--r--views/default/output/email.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/output/email.php b/views/default/output/email.php
index 00eefad1f..f5a8bc4b8 100644
--- a/views/default/output/email.php
+++ b/views/default/output/email.php
@@ -10,6 +10,8 @@
*
*/
+$encoded_value = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8');
+
if (!empty($vars['value'])) {
- echo "<a href=\"mailto:" . $vars['value'] . "\">". htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8', false) ."</a>";
+ echo "<a href=\"mailto:$encoded_value\">$encoded_value</a>";
} \ No newline at end of file