php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24663 Message with "\n.\n" is being truncated
Submitted: 2003-07-15 07:05 UTC Modified: 2003-07-23 11:09 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: faraco dot phpbugs at mailnull dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.3.3RC2-dev, 5.0.0b2-dev OS: win32 only
Private report: No CVE-ID:
 [2003-07-15 07:05 UTC] faraco dot phpbugs at mailnull dot com
Description:
------------
When a string with the character sequence "\n.\n" is passed to the message argument of mail() function, the result email is truncated just before the sequence.

Reproduce code:
---------------
<?

$message = "Text before dot\n.\nText after dot";

mail($to, $subject, $message);

?>


Expected result:
----------------
An email like this:

--------------------------------------
Text before dot
.
Text after dot
--------------------------------------

Actual result:
--------------
An email like this:

--------------------------------------
Text before dot
--------------------------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-15 22:51 UTC] sniper@php.net
Works with Linux, does not work with win32.

 [2003-07-23 11:09 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 08:02:55 2014 UTC