mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
MFB: Fixed bug #48620 (X-PHP-Originating-Script assumes no trailing CRLF in
existing headers)
This commit is contained in:
parent
8990a91fd7
commit
ca74bf9e44
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||||
php_basename(tmp, strlen(tmp), NULL, 0, &f, &f_len TSRMLS_CC);
|
php_basename(tmp, strlen(tmp), NULL, 0, &f, &f_len TSRMLS_CC);
|
||||||
|
|
||||||
if (headers != NULL) {
|
if (headers != NULL) {
|
||||||
spprintf(&hdr, 0, "%s\r\nX-PHP-Originating-Script: %ld:%s\n", headers, php_getuid(), f);
|
spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\r\n%s", php_getuid(), f, headers);
|
||||||
} else {
|
} else {
|
||||||
spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n", php_getuid(), f);
|
spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n", php_getuid(), f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue