#50907 [Opn->Csd]: X-PHP-Originating-Script adding two new lines in *NIX

From: Date: Tue, 02 Feb 2010 12:50:26 +0000
Subject: #50907 [Opn->Csd]: X-PHP-Originating-Script adding two new lines in *NIX
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147148@lists.php.net to get a copy of this message
 ID:               50907
 Updated by:       iliaa@php.net
 Reported By:      adeel dot e at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         *Mail Related
 Operating System: CentOS 5.4
 PHP Version:      5.3.1
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2010-02-02 12:50:21] svn@php.net

Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=294335
Log: Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in
*NIX).

------------------------------------------------------------------------

[2010-02-02 10:14:23] 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>
;-----------------


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50907&edit=1



Thread (2 messages)

« previous php.bugs (#147148) next »