mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-28 11:25:44 +00:00
Fixed php_mail log
This commit is contained in:
1 parent
ca146a6e14
commit
1aecda4c43
1 file changed
+4
-3
+4
-3
@@ -248,16 +248,17 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||
return val; \
|
||||
|
||||
if (mail_log && *mail_log) {
|
||||
char *tmp, *date_str;
|
||||
char *tmp;
|
||||
time_t curtime;
|
||||
int l;
|
||||
zend_string *date_str;
|
||||
|
||||
time(&curtime);
|
||||
date_str = php_format_date("d-M-Y H:i:s e", 13, curtime, 1 TSRMLS_CC);
|
||||
|
||||
l = spprintf(&tmp, 0, "[%s] mail() on [%s:%d]: To: %s -- Headers: %s\n", date_str, zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), to, hdr ? hdr : "");
|
||||
l = spprintf(&tmp, 0, "[%s] mail() on [%s:%d]: To: %s -- Headers: %s\n", date_str->val, zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), to, hdr ? hdr : "");
|
||||
|
||||
efree(date_str);
|
||||
STR_FREE(date_str);
|
||||
|
||||
if (hdr) {
|
||||
php_mail_log_crlf_to_spaces(tmp);
|
||||
|
||||
Reference in new issue
Block a user