]> granicus.if.org Git - php/commitdiff
MFH: Stricter cc header check
authorIlia Alshanetsky <iliaa@php.net>
Wed, 19 Jan 2005 18:54:57 +0000 (18:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 19 Jan 2005 18:54:57 +0000 (18:54 +0000)
win32/sendmail.c

index 156ffef90332004cacc1ac630b61f0171c06003a..639f6eddb445122b1f09a59c3e631fcab3868a15 100644 (file)
@@ -462,7 +462,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:")) && ((pos1 == headers_lc) || iscntrl(*(pos1-1)))) {
+       else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || (*(pos1-1) == '\n'))) {
                /* Real offset is memaddress from the original headers + difference of
                 * string found in the lowercase headrs + 3 characters to jump over
                 * the cc: */