diff options
| author | Sara Golemon <pollita@php.net> | 2002-12-28 19:32:45 +0000 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2002-12-28 19:32:45 +0000 |
| commit | 072d5c2575fc622b83cc9ef4631371900505e47e (patch) | |
| tree | f5fd5f339e72657157c57058248b55625ee82748 /win32/sendmail.c | |
| parent | 955b27cd6411eda365cac84610b0f487bfab1d1b (diff) | |
| download | php-git-072d5c2575fc622b83cc9ef4631371900505e47e.tar.gz | |
When scanning for cc: headers, make sure the header is JUST cc: and not bcc: or original-cc: or <anything-printable>cc:
See Bugs # 21036 and # 20707
Diffstat (limited to 'win32/sendmail.c')
| -rw-r--r-- | win32/sendmail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c index 5a8c7276d3..3d4b95b386 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: */ |
