]> granicus.if.org Git - php/commitdiff
Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 2 Feb 2010 12:50:21 +0000 (12:50 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 2 Feb 2010 12:50:21 +0000 (12:50 +0000)
ext/standard/mail.c

index cfd053524760d3d2113df339e930b57e7c72b123..b278180a91ed1f3bf4ad898eac4e058514865ee8 100644 (file)
@@ -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);
                }