Lines Matching refs:hdr
224 static int php_mail_detect_multiple_crlf(char *hdr) { in php_mail_detect_multiple_crlf() argument
228 if (!hdr || !strlen(hdr)) { in php_mail_detect_multiple_crlf()
234 if (*hdr < 33 || *hdr > 126 || *hdr == ':') { in php_mail_detect_multiple_crlf()
238 while(*hdr) { in php_mail_detect_multiple_crlf()
239 if (*hdr == '\r') { in php_mail_detect_multiple_crlf()
240 …if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || (*(hdr+1) == '\n' && (*(hdr+2) == '\0' || *(hdr+2) == … in php_mail_detect_multiple_crlf()
244 hdr += 2; in php_mail_detect_multiple_crlf()
246 } else if (*hdr == '\n') { in php_mail_detect_multiple_crlf()
247 if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || *(hdr+1) == '\n') { in php_mail_detect_multiple_crlf()
251 hdr += 2; in php_mail_detect_multiple_crlf()
254 hdr++; in php_mail_detect_multiple_crlf()
275 char *hdr = headers; in php_mail() local
281 if (hdr != headers) { \ in php_mail()
282 efree(hdr); \ in php_mail()
288 …\n", zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), to, hdr ? hdr : ""); in php_mail()
290 if (hdr) { in php_mail()
316 spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n%s", php_getuid(TSRMLS_C), f, headers); in php_mail()
318 spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s", php_getuid(TSRMLS_C), f); in php_mail()
323 if (hdr && php_mail_detect_multiple_crlf(hdr)) { in php_mail()
331 …if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, hdr, subject, to, message, NULL, NULL, NULL … in php_mail()
391 if (hdr != NULL) { in php_mail()
392 fprintf(sendmail, "%s\n", hdr); in php_mail()