mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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
This commit is contained in:
parent
955b27cd64
commit
072d5c2575
1 changed files with 1 additions and 1 deletions
|
@ -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: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue