X-PHP-Originating-Script adding two new lines in *NIX
| Bug #50907 | X-PHP-Originating-Script adding two new lines in *NIX | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-02-02 10:14 UTC | Modified: | 2010-02-02 12:50 UTC | ||
| From: | adeel dot e at gmail dot com | Assigned: | |||
| Status: | Closed | Package: | *Mail Related | ||
| PHP Version: | 5.3.1 | OS: | CentOS 5.4 | ||
| Private report: | No | CVE-ID: | None | ||
[2010-02-02 10:14 UTC] adeel dot e at gmail dot com
Description: ------------ This change (http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c? r1=1.106&r2=1.107) adds "\r\n" after the X-PHP-Originating-Script header, on *NIX machines using "\n" as new line separators, this results in *two* line breaks which breaks the email. This worked fine in PHP 5.2.x but since upgrading to PHP 5.3 it has stopped working. Expected result: ---------------- ;----------------- Date: 2 Feb 2010 01:41:56 +0000 To: e@example.com Subject: My Subject X-PHP-Originating-Script: 10002:mail.php From: F <f@example.com> Reply-To: F <f@example.com> ;----------------- Actual result: -------------- ;----------------- Date: 2 Feb 2010 01:41:56 +0000 To: e@example.com Subject: My Subject X-PHP-Originating-Script: 10002:mail.php From: F <f@example.com> Reply-To: F <f@example.com> ;-----------------
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-02-02 12:50 UTC] iliaa@php.net