From: faraco dot phpbugs at mailnull dot com Operating system: Windows NT4 SP6 PHP version: 4.3.2 PHP Bug Type: Mail related Bug description: Message with "\n.\n" is being truncated
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 -------------------------------------- -- Edit bug report at http://bugs.php.net/?id=24663&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24663&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24663&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24663&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24663&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24663&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24663&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24663&r=support Expected behavior: http://bugs.php.net/fix.php?id=24663&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24663&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24663&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24663&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24663&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24663&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24663&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24663&r=gnused