diff options
author | Steve Clay <steve@mrclay.org> | 2012-11-11 19:37:40 -0500 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-11 19:37:40 -0500 |
commit | a73df942c5e863996358cb28f31eddaea7f0bdb8 (patch) | |
tree | 59366971c4abe2249b90fdf7e29d726d8b513c76 /views/default/output | |
parent | cf78b4d7b4b9a8a3c57cea779aeca9cbe7ace7ed (diff) | |
parent | 6648304aa71067a05b0d4166396f5f93c0f66628 (diff) | |
download | elgg-a73df942c5e863996358cb28f31eddaea7f0bdb8.tar.gz elgg-a73df942c5e863996358cb28f31eddaea7f0bdb8.tar.bz2 |
Merge branch '4593-18' into 1.8
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/email.php | 4 |
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 |