From 08af09ccbb82cbdb2ed40afc83fca82519a3c3c1 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 2 Feb 2010 12:50:21 +0000 Subject: [PATCH] Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX). --- ext/standard/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1