]> granicus.if.org Git - php/commitdiff
MFH(r-1.50/r-1.51)
authorSara Golemon <pollita@php.net>
Mon, 3 Feb 2003 03:47:00 +0000 (03:47 +0000)
committerSara Golemon <pollita@php.net>
Mon, 3 Feb 2003 03:47:00 +0000 (03:47 +0000)
win32/sendmail.c

index 51eb9410c239007b481eae4d706e0a0597fdaec0..ba94b723dd97b249db9aca5dc40b5cdf4dfec5c3 100644 (file)
@@ -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: */