iliaa Sun Jun 21 15:30:23 2009 UTC Modified files: /php-src/ext/standard mail.c Log: MFB: Fixed bug #48620 (X-PHP-Originating-Script assumes no trailing CRLF in existing headers) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?r1=1.106&r2=1.107&diff_format=u Index: php-src/ext/standard/mail.c diff -u php-src/ext/standard/mail.c:1.106 php-src/ext/standard/mail.c:1.107 --- php-src/ext/standard/mail.c:1.106 Wed Apr 15 14:25:20 2009 +++ php-src/ext/standard/mail.c Sun Jun 21 15:30:23 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mail.c,v 1.106 2009/04/15 14:25:20 iliaa Exp $ */ +/* $Id: mail.c,v 1.107 2009/06/21 15:30:23 iliaa Exp $ */ #include <stdlib.h> #include <ctype.h> @@ -235,7 +235,7 @@ php_basename(tmp, strlen(tmp), NULL, 0, &f, &f_len TSRMLS_CC); if (headers != NULL) { - spprintf(&hdr, 0, "%s\r\nX-PHP-Originating-Script: %ld:%s\n", headers, php_getuid(), f); + spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\r\n%s", php_getuid(), f, headers); } else { spprintf(&hdr, 0, "X-PHP-Originating-Script: %ld:%s\n", php_getuid(), f); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php