summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_block_alloc.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-03-01 16:18:40 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-03-01 18:46:21 +0100
commit71297a254b8f0d97c028f3324cbaf95adf8de33c (patch)
treed79731f1d753a65ecafdf13cf29dbbd49d871706 /ext/mysqlnd/mysqlnd_block_alloc.c
parent2c508c4d407e98a27ed2631ae88e2e10ee430003 (diff)
downloadphp-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/mysqlnd/mysqlnd_block_alloc.c')
0 files changed, 0 insertions, 0 deletions