From: Ilia Alshanetsky Date: Tue, 2 Feb 2010 12:50:21 +0000 (+0000) Subject: Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX). X-Git-Tag: php-5.4.0alpha1~191^2~1987 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08af09ccbb82cbdb2ed40afc83fca82519a3c3c1;p=php Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX). --- diff --git a/ext/standard/mail.c b/ext/standard/mail.c index cfd0535247..b278180a91 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -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); 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); }