Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2011 at 13:56 UTC
Updated:
25 Oct 2011 at 16:30 UTC
I think line 250 of print_mail/print_mail.inc
$from = '"'. $form_state['values']['fld_from_name'] .'" <'. $form_state['values']['fld_from_addr'] .'>';
should look like this
$from = '"'. addslashes(mime_header_encode($form_state['values']['fld_from_name'])) .'" <'. $form_state['values']['fld_from_addr'] .'>';
It fixed a bug for users with non ASCII characters in their names on my website.
Comments
Comment #1
jcnventuraHi,
Can you tell me an example of such a username??
Comment #2
kargal commentedSome examples :
Dorothée
Andrée
Laëtitia
Kind of firstnames you don't usually see with an american or english community ;)
Comment #3
jcnventuraWell, my first name is João, so I certainly relate to that.
I think I see what the bug is. :) I'll try to see what I can do.
João
Comment #4
jcnventuraComment #5
jcnventuraThanks for the suggestion.
After reading the documentation, of mime_header_encode(), I concluded that in no occasion would the addslashes() call be needed, so I didn't use that.
Committed to git.