Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed bug #74510 win32/sendmail.c anchors CC header but not BCC
This commit is contained in:
Anatol Belski 2017-05-02 12:33:26 +02:00
commit 83d8daef97

View File

@ -522,7 +522,7 @@ static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char
efree(tempMailTo);
}
else if (headers) {
if (pos1 = strstr(headers_lc, "bcc:")) {
if ((pos1 = strstr(headers_lc, "bcc:")) && (pos1 == headers_lc || *(pos1-1) == '\n')) {
/* Real offset is memaddress from the original headers + difference of
* string found in the lowercase headrs + 4 characters to jump over
* the bcc: */