summaryrefslogtreecommitdiff
path: root/win32/sendmail.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-02-03 03:47:00 +0000
committerSara Golemon <pollita@php.net>2003-02-03 03:47:00 +0000
commit98f4eed1d48ff16c41ab421988562919dd10ec3a (patch)
tree6ff20b859dd246f6b4c5f12892ccbb6e7627ff5f /win32/sendmail.c
parent1baeaf9201218a12c1a16f3d4bff20a77e51ef86 (diff)
downloadphp-git-98f4eed1d48ff16c41ab421988562919dd10ec3a.tar.gz
MFH(r-1.50/r-1.51)
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r--win32/sendmail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 51eb9410c2..ba94b723dd 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -435,7 +435,7 @@ int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char *mailB
efree(tempMailTo);
}
/* Send mail to all Cc rcpt's */
- else if (headers && (pos1 = strstr(headers_lc, "cc:"))) {
+ else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || iscntrl(*(pos1-1)))) {
/* Real offset is memaddress from the original headers + difference of
* string found in the lowercase headrs + 3 characters to jump over
* the cc: */