1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fixed bug #74510 win32/sendmail.c anchors CC header but not BCC

This commit is contained in:
Anatol Belski
2017-05-02 12:31:00 +02:00
parent 4c0e50c88a
commit 20a608d9da

View File

@@ -535,7 +535,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: */