diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-01 16:18:40 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-01 18:46:21 +0100 |
commit | 71297a254b8f0d97c028f3324cbaf95adf8de33c (patch) | |
tree | d79731f1d753a65ecafdf13cf29dbbd49d871706 /ext/json | |
parent | 2c508c4d407e98a27ed2631ae88e2e10ee430003 (diff) | |
download | php-git-71297a254b8f0d97c028f3324cbaf95adf8de33c.tar.gz |
Fix #80751: Comma in recipient name breaks email delivery
So far, `SendText()` simply separates potential email address lists at
any comma, disregarding that commas inside a quoted-string do not
delimit addresses. We fix that by introducing an own variant of
`strtok_r()` which caters to quoted-strings.
We also make `FormatEmailAddress()` aware of quoted strings.
We do not cater to email address comments, and potentially other quirks
of RFC 5322 email addresses, but catering to quoted-strings is supposed
to solve almost all practical use cases.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Closes GH-6735.
Diffstat (limited to 'ext/json')
0 files changed, 0 insertions, 0 deletions