Lines Matching refs:hdr
401 static int php_mail_detect_multiple_crlf(const char *hdr) { in php_mail_detect_multiple_crlf() argument
404 if (!hdr || !strlen(hdr)) { in php_mail_detect_multiple_crlf()
410 if (*hdr < 33 || *hdr > 126 || *hdr == ':') { in php_mail_detect_multiple_crlf()
414 while(*hdr) { in php_mail_detect_multiple_crlf()
415 if (*hdr == '\r') { in php_mail_detect_multiple_crlf()
416 …if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || (*(hdr+1) == '\n' && (*(hdr+2) == '\0' || *(hdr+2) == … in php_mail_detect_multiple_crlf()
420 hdr += 2; in php_mail_detect_multiple_crlf()
422 } else if (*hdr == '\n') { in php_mail_detect_multiple_crlf()
423 if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || *(hdr+1) == '\n') { in php_mail_detect_multiple_crlf()
427 hdr += 2; in php_mail_detect_multiple_crlf()
430 hdr++; in php_mail_detect_multiple_crlf()
445 const char *hdr = headers; in php_mail() local
460 …bject: %s", zend_get_executed_filename(), zend_get_executed_lineno(), to, hdr ? hdr : "", subject); in php_mail()
462 if (hdr) { in php_mail()
506 hdr = ahdr; in php_mail()
510 if (hdr && php_mail_detect_multiple_crlf(hdr)) { in php_mail()
521 …if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, hdr, subject, to, message, NULL, NULL, NULL)… in php_mail()
581 if (hdr != NULL) { in php_mail()
582 fprintf(sendmail, "%s%s", hdr, line_sep); in php_mail()