Replace Windows line breaks with Unix line breaks in custom mail filters.
| | |
| | | |
| | | // Custom filters |
| | | if($data["new"]["custom_mailfilter"] == 'NULL') $data["new"]["custom_mailfilter"] = ''; |
| | | $tpl->setVar('custom_mailfilter', $data["new"]["custom_mailfilter"]); |
| | | $tpl->setVar('custom_mailfilter', str_replace("\r\n","\n",$data["new"]["custom_mailfilter"])); |
| | | |
| | | // Move junk |
| | | $tpl->setVar('move_junk', $data["new"]["move_junk"]); |
| | |
| | | $mailfilter_content .= file_get_contents($conf["rootpath"].'/conf/mailfilter_move_junk.master')."\n"; |
| | | } |
| | | } |
| | | $mailfilter_content .= $data["new"]["custom_mailfilter"]; |
| | | $mailfilter_content .= str_replace("\r\n","\n",$data["new"]["custom_mailfilter"]); |
| | | |
| | | // Replace windows linebreaks in mailfilter file |
| | | $mailfilter_content = str_replace("\r\n", "\n", $mailfilter_content); |