git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13493
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if ($encoded && !$is_encoded) {
$personal_encoded = encodeHeader($personal);
if ($personal !== $personal_encoded) {
- $personal = $personal_encoded;
+ $personal = '"' . $personal_encoded . '"';
} else {
- $personal = '"'.$this->personal.'"';
+ $personal = '"' . $this->personal . '"';
}
} else {
if (!$is_encoded) {
- $personal = '"'.$this->personal.'"';
+ $personal = '"' . $this->personal . '"';
}
}
$addr = ($email ? $personal . ' <' .$email.'>'
if ( isset($from_name) ) {
$from_name_encoded = encodeHeader($from_name);
if ($from_name_encoded != $from_name) {
- return $from_name_encoded .' <'.$from_mail.'>';
+ return '"' . $from_name_encoded . '" <' . $from_mail . '>';
}
- return '"'.$from_name .'" <'.$from_mail.'>';
+ return '"' . $from_name . '" <' . $from_mail . '>';
}
return $from_mail;
}