Changeset 936
- Timestamp:
- 04/09/07 16:41:02 (1 year ago)
- Files:
-
- trunk/upload/include/email.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/upload/include/email.php
r255 r936 78 78 $headers = 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n".'X-Mailer: PunBB Mailer'; 79 79 80 // Make sure all linebreaks are CRLF in message 81 $message = str_replace( "\n", "\r\n", pun_linebreaks($message));80 // Make sure all linebreaks are CRLF in message (and strip out any NULL bytes) 81 $message = str_replace(array("\n", "\0"), array("\r\n", ''), pun_linebreaks($message)); 82 82 83 83 if ($pun_config['o_smtp_host'] != '')
