encode_subject(): remove unnecessary CR's as some mail-scanners complain about them

This commit is contained in:
Ralf Becker 2003-11-23 10:41:19 +00:00
parent 69610bfc29
commit dbc66bcf00

View File

@ -164,6 +164,9 @@
*/ */
function encode_subject($subject) function encode_subject($subject)
{ {
// remove unnecessary CR's as some mail-scanners complain about them
$subject = str_replace("\r",'',$subject);
$enc_start = $enc_end = 0; $enc_start = $enc_end = 0;
$words = explode(' ',$subject); $words = explode(' ',$subject);