summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2011-10-11 16:22:30 (GMT)
committer Joao Ventura2011-10-11 16:25:22 (GMT)
commit439de44a4a2a38e74fbe15ea8aa3142889f9f373 (patch)
tree024edb98d7972216f78d96860b2957154d2b4a62
parent37e98ec484b7bfbc7e3992f7ab470f0e83f35bca (diff)
Issue #1277792: escape UTF-8 names when sending e-mails.
-rw-r--r--print_mail/print_mail.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/print_mail/print_mail.inc b/print_mail/print_mail.inc
index 140bfbd..c728b76 100644
--- a/print_mail/print_mail.inc
+++ b/print_mail/print_mail.inc
@@ -248,7 +248,7 @@ function print_mail_form_validate($form, &$form_state) {
function print_mail_form_submit($form, &$form_state) {
if (!array_key_exists('cancel', $form_state['values'])) {
if (!empty($form_state['values']['fld_from_name'])) {
- $from = '"' . $form_state['values']['fld_from_name'] . '" <' . $form_state['values']['fld_from_addr'] . '>';
+ $from = '"' . mime_header_encode($form_state['values']['fld_from_name']) . '" <' . $form_state['values']['fld_from_addr'] . '>';
}
else {
$from = $form_state['values']['fld_from_addr'];