mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user