summaryrefslogtreecommitdiff
path: root/ext/standard/mail.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-02-02 12:50:21 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-02-02 12:50:21 +0000
commitd5fd93e9975a966c35e2e4938c60568697c7b2c8 (patch)
tree27a02d93a50ae2ab1eac12053816cf31aaae653c /ext/standard/mail.c
parent694a72c5afbac78bc13b3cfde7c1cfd2c1fc9f68 (diff)
downloadphp-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.c2
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);
}