diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-02-04 17:43:53 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-02-08 18:42:31 +0100 |
commit | ca7547c9e2f9120768d8290001ec6e1509b3597f (patch) | |
tree | 932919802e4ee86e3ff24e220d8c51719fc60956 /win32 | |
parent | 4ff2665509a0d2172e558fa21ed6718792349e85 (diff) | |
download | php-git-ca7547c9e2f9120768d8290001ec6e1509b3597f.tar.gz |
Fix #80706: mail(): Headers after Bcc headers may be ignored
We need to handle the case where a CRLF after a Bcc header is not the
beginning of a folding marker, because in that case the Bcc header was
not the last "thing".
Closes GH-6666.
Diffstat (limited to 'win32')
-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 c82dc7b3c6..0e38d7092f 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -526,7 +526,7 @@ static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char header we know it was the last thing. */ pos2 = pos1; } else { - char *pos3 = NULL; + char *pos3 = pos2; while (pos2[2] == ' ' || pos2[2] == '\t') { pos3 = strstr(pos2 + 2, "\r\n"); if (pos3 != NULL) { |