aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_mail.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-07-02 06:36:53 +0000
committerrub <rub@piwigo.org>2007-07-02 06:36:53 +0000
commit3d6fc7d9eafcb7f026b2f55ef39dcb5be14ae2ce (patch)
tree451ada9e94da20662d227462ee64bba95aa17420 /include/functions_mail.inc.php
parent30532b2186e85ed95922f96a4e9645dacab8245f (diff)
Resolved issue 0000715: Best fix bad format of email with name contains special character.
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2050 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_mail.inc.php')
-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
{