summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-05-02 12:31:00 +0200
committerAnatol Belski <ab@php.net>2017-05-02 12:31:00 +0200
commit20a608d9dae4c758bf608e10fd2cdb9cc1559625 (patch)
treefbddb1e190f67596fabceb58395ada205d51afd4 /win32
parent4c0e50c88ac49052c61d1f23d5797e5d00384524 (diff)
downloadphp-git-20a608d9dae4c758bf608e10fd2cdb9cc1559625.tar.gz
Fixed bug #74510 win32/sendmail.c anchors CC header but not BCC
Diffstat (limited to 'win32')
-rw-r--r--win32/sendmail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index d460f22fda..d83663a475 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -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: */