diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-02-02 12:50:21 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-02-02 12:50:21 +0000 |
commit | d5fd93e9975a966c35e2e4938c60568697c7b2c8 (patch) | |
tree | 27a02d93a50ae2ab1eac12053816cf31aaae653c /ext/standard/mail.c | |
parent | 694a72c5afbac78bc13b3cfde7c1cfd2c1fc9f68 (diff) | |
download | php-git-d5fd93e9975a966c35e2e4938c60568697c7b2c8.tar.gz |
Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX).
Diffstat (limited to 'ext/standard/mail.c')
-rw-r--r-- | ext/standard/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 3b22d6f023..ab65f164e7 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -241,7 +241,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); if (headers != NULL) { - spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\r\n%s", php_getuid(), f, headers); + spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n%s", php_getuid(), f, headers); } else { spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n", php_getuid(), f); } |