Re: [PATCH] send-email: add extra safetly in address sanitazion
2012/2/5 Thomas Rast <trast@inf.ethz.ch>:
Show 17 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> Currently bad addresses like 'Foo Bar <foo@bar.com>>' will just be sent
>> verbatim -- that's not good; we should either error out, or sanitize
>> them.
>>
>> The following patch adds extra sanitazion so the following
>> transformations are performed:
>>
>> 'Foo Bar <foo@bar.com>' -> 'Foo Bar <foo@bar.com>'
>> '"Foo Bar" <foo@bar.com>' -> '"Foo Bar" <foo@bar.com>'
>> 'foo@bar.com' -> 'foo@bar.com'
>> '<foo@bar.com>' -> 'foo@bar.com'
>> 'Foo Bar' -> 'Foo Bar'
>
> Am I the only one who stared at this for ten seconds, only to then
> realize that there is no sanitizing whatsoever going on here?
There is: '<foo@bar.com>' -> 'foo@bar.com'
Show 6 quoted lines
>> 'Foo Bar <foo@bar.com>>' -> 'Foo Bar <foo@bar.com>'
>> '"Foo Bar" <foo@bar.com>>' -> '"Foo Bar" <foo@bar.com>'
>> '<foo@bar.com>>' -> 'foo@bar.com'
>
> All of these are the same underlying issue. Does your patch fix any
> other malformed addresses, or just this particular type?
--
Felipe Contreras