Changeset 2050 for branches


Ignore:
Timestamp:
Jul 2, 2007, 8:36:53 AM (17 years ago)
Author:
rub
Message:

Resolved issue 0000715: Best fix bad format of email with name contains special character.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/functions_mail.inc.php

    r2049 r2050  
    7575  if ($conf['enabled_format_email'])
    7676  {
    77     $cvt7b_name = str_translate_to_ascii7bits($name);
     77    $cvt7b_name = '"'.addslashes(str_translate_to_ascii7bits($name)).'"';
    7878
    7979    if (strpos($email, '<') === false)
    8080    {
    81       return '"'.addslashes($cvt7b_name).'" <'.$email.'>';
     81      return $cvt7b_name.' <'.$email.'>';
    8282    }
    8383    else
Note: See TracChangeset for help on using the changeset viewer.