Skip to content

Commit

Permalink
- Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in …
Browse files Browse the repository at this point in the history
…*NIX).
  • Loading branch information
pierrejoye committed Feb 5, 2010
1 parent 65ca56c commit 66aa6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -17,6 +17,8 @@ PHP NEWS
links or invalid paths. (Pierre)
- Fixed error output to stderr on Windows. (Pierre)

- Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX).
(Ilia)
- Fixed bug #50859 (build fails with openssl 1.0 due to md2 deprecation).
(Ilia, hanno at hboeck dot de)
- Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/mail.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 66aa6d0

Please sign in to comment.