franck-paul / contactMe

Dotclear 2 plugin
GNU General Public License v2.0
2 stars 2 forks source link

fix bug when SMTP account is specified and there is a : in the blog name #3

Closed biou closed 3 years ago

biou commented 3 years ago

When the SMTP account is specified in the settings, the sender of the email will be "blog name" . But if there is a : in the blog name, this will break the headers, as the : is the character used in headers to separate keys and values. I propose a simple fix here, but maybe the function mail::B64Header should take care of this cleaning.

franck-paul commented 3 years ago

Je viens de jeter un œil à la RFC2047 et il n'y a pas que le : qui pose éventuellement problème. Effectivement il va falloir se pencher du côté de CB pour corriger ça. En attendant j'intègre ta PR.