aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_mail.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index f5dd807f4..9445a1536 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -74,11 +74,11 @@ function format_email($name, $email)
if ($conf['enabled_format_email'])
{
- $cvt7b_name = str_translate_to_ascii7bits($name);
+ $cvt7b_name = '"'.addslashes(str_translate_to_ascii7bits($name)).'"';
if (strpos($email, '<') === false)
{
- return '"'.addslashes($cvt7b_name).'" <'.$email.'>';
+ return $cvt7b_name.' <'.$email.'>';
}
else
{