Lines Matching refs:hdr

424 static int php_mail_detect_multiple_crlf(char *hdr) {  in php_mail_detect_multiple_crlf()  argument
427 if (!hdr || !strlen(hdr)) { in php_mail_detect_multiple_crlf()
433 if (*hdr < 33 || *hdr > 126 || *hdr == ':') { in php_mail_detect_multiple_crlf()
437 while(*hdr) { in php_mail_detect_multiple_crlf()
438 if (*hdr == '\r') { in php_mail_detect_multiple_crlf()
439 …if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || (*(hdr+1) == '\n' && (*(hdr+2) == '\0' || *(hdr+2) == … in php_mail_detect_multiple_crlf()
443 hdr += 2; in php_mail_detect_multiple_crlf()
445 } else if (*hdr == '\n') { in php_mail_detect_multiple_crlf()
446 if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || *(hdr+1) == '\n') { in php_mail_detect_multiple_crlf()
450 hdr += 2; in php_mail_detect_multiple_crlf()
453 hdr++; in php_mail_detect_multiple_crlf()
474 char *hdr = headers; in php_mail() local
480 if (hdr != headers) { \ in php_mail()
481 efree(hdr); \ in php_mail()
488 …bject: %s", zend_get_executed_filename(), zend_get_executed_lineno(), to, hdr ? hdr : "", subject); in php_mail()
490 if (hdr) { in php_mail()
524 …spprintf(&hdr, 0, "X-PHP-Originating-Script: " ZEND_LONG_FMT ":%s\n%s", php_getuid(), ZSTR_VAL(f),… in php_mail()
526 spprintf(&hdr, 0, "X-PHP-Originating-Script: " ZEND_LONG_FMT ":%s", php_getuid(), ZSTR_VAL(f)); in php_mail()
531 if (hdr && php_mail_detect_multiple_crlf(hdr)) { in php_mail()
539 …if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, hdr, subject, to, message, NULL, NULL, NULL)… in php_mail()
599 if (hdr != NULL) { in php_mail()
600 fprintf(sendmail, "%s\n", hdr); in php_mail()