aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/email.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/email.php')
-rw-r--r--views/default/output/email.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/output/email.php b/views/default/output/email.php
index e2142b09b..f5a8bc4b8 100644
--- a/views/default/output/email.php
+++ b/views/default/output/email.php
@@ -5,13 +5,13 @@
*
* @package Elgg
* @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
*
* @uses $vars['value'] The email address to display
*
*/
+$encoded_value = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8');
+
if (!empty($vars['value'])) {
- echo "<a href=\"mailto:" . $vars['value'] . "\">". htmlentities($vars['value'], ENT_QUOTES, 'UTF-8') ."</a>";
+ echo "<a href=\"mailto:$encoded_value\">$encoded_value</a>";
} \ No newline at end of file