FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Why is "backslash n" replaced in outgoing mail?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=158952&th=118365#msg_158952
$body = str_replace(array('\n',"\r"), array("\n",""), $body);
If I change this to:
$body = str_replace("\r", "", $body);
The problem goes away. But why was the code there? Is it OK to change it or will that cause another problem?
I can't see any reason to suppress the "backslash n" character sequence; in fact, the current behaviour is very annoying when posting code snippets (e.g., I suspect the code above with its sequence of backslash n's will appear corrupted in email).
]]>tgtaft2009-04-19T12:11:38-00:00Re: Why is "backslash n" replaced in outgoing mail?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=158964&th=118365#msg_158964
]]>naudefj2009-04-19T20:18:37-00:00Re: Why is "backslash n" replaced in outgoing mail?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=158993&th=118365#msg_158993
This new patch restricts the fix to notifications.